https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103463
Bug ID: 103463 Summary: [12 Regression] ICE: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 with -Os -fno-tree-dominator-opts -fno-tree-vrp 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 51892 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51892&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -Os -fno-tree-dominator-opts -fno-tree-vrp testcase.c during RTL pass: sched2 testcase.c: In function 'bar0': testcase.c:10:1: internal compiler error: in ix86_attr_length_immediate_default, at config/i386/i386.c:16686 10 | } | ^ 0x814081 ix86_attr_length_immediate_default(rtx_insn*, bool) /repo/gcc-trunk/gcc/config/i386/i386.c:16686 0x1aeb948 insn_default_length(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.md:720 0x16dcd92 ix86_min_insn_size(rtx_insn*) /repo/gcc-trunk/gcc/config/i386/i386.c:21516 0x1762631 core2i7_first_cycle_multipass_filter_ready_try /repo/gcc-trunk/gcc/config/i386/x86-tune-sched-core.c:107 0x22e199f max_issue(ready_list*, int, void*, bool, int*) /repo/gcc-trunk/gcc/haifa-sched.c:5952 0x22e47a7 max_issue(ready_list*, int, void*, bool, int*) /repo/gcc-trunk/gcc/haifa-sched.c:6189 0x22e47a7 choose_ready /repo/gcc-trunk/gcc/haifa-sched.c:6189 0x22f2532 schedule_block(basic_block_def**, void*) /repo/gcc-trunk/gcc/haifa-sched.c:6806 0x12fb8cd schedule_region /repo/gcc-trunk/gcc/sched-rgn.c:3179 0x12fb8cd schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3518 0x12fbded schedule_insns() /repo/gcc-trunk/gcc/sched-rgn.c:3504 0x12fbded rest_of_handle_sched2 /repo/gcc-trunk/gcc/sched-rgn.c:3742 0x12fbded 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-5569-20211128195959-g300dbea1269-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-5569-20211128195959-g300dbea1269-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20211129 (experimental) (GCC)