https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103484
Bug ID: 103484 Summary: [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -O2 -fno-tree-bit-ccp Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 51904 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51904&action=edit reduced testcase This happens even after the PR103463 fix. Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -fno-tree-bit-ccp testcase.c during RTL pass: sched2 testcase.c: In function 'foo': testcase.c:11:1: internal compiler error: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 11 | } | ^ 0x81a047 ix86_attr_length_immediate_default(rtx_insn*, bool) /repo/gcc-trunk/gcc/config/i386/i386.c:16686 0x1ae7af8 insn_default_length(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.md:19335 0x16d4360 ix86_min_insn_size(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.c:21517 0x176fee0 core2i7_first_cycle_multipass_filter_ready_try /repo/gcc-trunk/gcc/config/i386/x86-tune-sched-core.c:107 0x22e8a1f max_issue(ready_list*, int, void*, bool, int*) /repo/gcc-trunk/gcc/haifa-sched.c:5952 0x22e92e6 choose_ready /repo/gcc-trunk/gcc/haifa-sched.c:6189 0x22f4a9b schedule_block(basic_block_def**, void*) /repo/gcc-trunk/gcc/haifa-sched.c:6806 0x130954f schedule_region /repo/gcc-trunk/gcc/sched-rgn.c:3179 0x130954f schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3518 0x1309a6d schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3504 0x1309a6d rest_of_handle_sched2 /repo/gcc-trunk/gcc/sched-rgn.c:3742 0x1309a6d execute /repo/gcc-trunk/gcc/sched-rgn.c:3878 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. $ x86_64-pc-linux-gnu-gcc -v Using built-in specs. COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-5590-20211129212232-g6c7d489a1e6-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++ --enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra --disable-bootstrap --with-cloog --with-ppl --with-isl --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld --with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r12-5590-20211129212232-g6c7d489a1e6-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211130 (experimental) (GCC)