https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112943
Bug ID: 112943
Summary: ICE: in gen_reg_rtx, at emit-rtl.cc:1176 with -O2
-march=westmere -mapxf
Product: gcc
Version: 14.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 56844
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56844&action=edit
auto-reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O2 -march=westmere -mapxf testcase.c
testcase.c: In function 'foo0':
testcase.c:26:22: warning: integer constant is so large that it is unsigned
26 | __int128 u128_2 = (9223372036854775808 << 4) * foo0_u8_0,
| ^~~~~~~~~~~~~~~~~~~
during RTL pass: split2
testcase.c:59:1: internal compiler error: in gen_reg_rtx, at emit-rtl.cc:1176
59 | }
| ^
0x74ec9a gen_reg_rtx(machine_mode)
/repo/gcc-trunk/gcc/emit-rtl.cc:1176
0x1088ef5 force_reg(machine_mode, rtx_def*)
/repo/gcc-trunk/gcc/explow.cc:682
0x19b968f ix86_fixup_binary_operands(rtx_code, machine_mode, rtx_def**, bool)
/repo/gcc-trunk/gcc/config/i386/i386-expand.cc:1311
0x19b9723 ix86_expand_binary_operator(rtx_code, machine_mode, rtx_def**, bool)
/repo/gcc-trunk/gcc/config/i386/i386-expand.cc:1346
0x1e467cf gen_ashldi3(rtx_def*, rtx_def*, rtx_def*)
/repo/gcc-trunk/gcc/config/i386/i386.md:14311
0x1e467cf gen_split_536(rtx_insn*, rtx_def**)
/repo/gcc-trunk/gcc/config/i386/i386.md:14503
0x2523dd5 split_insns(rtx_def*, rtx_insn*)
/repo/gcc-trunk/gcc/config/i386/i386.md:19293
0x10720da try_split(rtx_def*, rtx_insn*, int)
/repo/gcc-trunk/gcc/emit-rtl.cc:3800
0x1438518 split_insn
/repo/gcc-trunk/gcc/recog.cc:3401
0x143f3b5 split_all_insns()
/repo/gcc-trunk/gcc/recog.cc:3505
0x143f4d8 execute
/repo/gcc-trunk/gcc/recog.cc:4429
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
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-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-6356-20231209102837-g36be2a0e91c-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.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-r14-6356-20231209102837-g36be2a0e91c-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231209 (experimental) (GCC)