public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/112494] ICE in ix86_cc_mode, at config/i386/i386.cc:16477 Date: Mon, 13 Nov 2023 09:54:27 +0000 [thread overview] Message-ID: <bug-112494-4-DdLS18yqJO@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-112494-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112494 --- Comment #5 from Uroš Bizjak <ubizjak at gmail dot com> --- Created attachment 56567 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56567&action=edit Proposed patch Nope, even with the above patch the compiler ICEs at the same place: 0x1956968 ix86_cc_mode(rtx_code, rtx_def*, rtx_def*) ../../git/gcc/gcc/config/i386/i386.cc:16508 0x286a3a9 try_combine ../../git/gcc/gcc/combine.cc:3207 0x2864cbf combine_instructions ../../git/gcc/gcc/combine.cc:1264 Trying 5 -> 8: 5: r98:DI=0xd7 8: flags:CCZ=cmp(r98:DI,0) REG_EQUAL cmp(0xd7,0) (insn 5 2 6 2 (set (reg/v:DI 98 [ flags ]) (const_int 215 [0xd7])) "pr112494.c":10:15 84 {*movdi_internal} (nil)) (insn 6 5 7 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0 S8 A8]) (const_int 215 [0xd7])) "/hdd/uros/gcc-build-fast/gcc/include/ia32intrin.h":270:3 58 {*pushdi2_rex64} (nil)) (insn 7 6 8 2 (set (reg:CC 17 flags) (unspec:CC [ (mem:DI (post_inc:DI (reg/f:DI 7 sp)) [0 S8 A8]) ] UNSPEC_SET_FLAGS)) "/hdd/uros/gcc-build-fast/gcc/include/ia32intrin.h":270:3 72 {*popfldi1} (expr_list:REG_UNUSED (reg:CC 17 flags) (nil))) (insn 8 7 11 2 (set (reg:CCZ 17 flags) (compare:CCZ (reg/v:DI 98 [ flags ]) (const_int 0 [0]))) "pr112494.c":12:9 8 {*cmpdi_ccno_1} (expr_list:REG_EQUAL (compare:CCZ (const_int 215 [0xd7]) (const_int 0 [0])) (nil))) (insn 11 8 12 2 (set (mem:DI (pre_dec:DI (reg/f:DI 7 sp)) [0 S8 A8]) (unspec:DI [ (reg:CC 17 flags) ] UNSPEC_GET_FLAGS)) "/hdd/uros/gcc-build-fast/gcc/include/ia32intrin.h":262:10 70 {*pushfldi2} (expr_list:REG_DEAD (reg:CC 17 flags) (nil))) There is nothing suspicious in target code anymore (IMO, the above patch should be applied nevertheless, the register modes are now fully correct)
next prev parent reply other threads:[~2023-11-13 9:54 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-11-12 14:25 [Bug c/112494] New: GCC: 14: internal compiler error: " 141242068 at smail dot nju.edu.cn 2023-11-12 20:57 ` [Bug rtl-optimization/112494] " ubizjak at gmail dot com 2023-11-12 21:12 ` [Bug rtl-optimization/112494] ICE " pinskia at gcc dot gnu.org 2023-11-13 7:57 ` pinskia at gcc dot gnu.org 2023-11-13 8:50 ` ubizjak at gmail dot com 2023-11-13 8:52 ` [Bug target/112494] " ubizjak at gmail dot com 2023-11-13 9:54 ` ubizjak at gmail dot com [this message] 2023-11-13 9:59 ` ubizjak at gmail dot com 2023-11-13 10:51 ` ubizjak at gmail dot com 2023-11-13 21:47 ` cvs-commit at gcc dot gnu.org 2023-11-28 15:57 ` cvs-commit at gcc dot gnu.org 2023-11-28 16:00 ` ubizjak at gmail dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-112494-4-DdLS18yqJO@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).