https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115407
Bug ID: 115407 Summary: [15 Regression] ICE: RTL flag check: CONSTANT_POOL_ADDRESS_P used with unexpected rtx code 'reg' in get_pool_constant, at varasm.cc:4046 with -O -mcmodel=large -mavx512bw Product: gcc Version: 15.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Target Milestone: --- Created attachment 58391 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58391&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mcmodel=large -mavx512bw testcase.c during RTL pass: split1 testcase.c: In function 'foo': testcase.c:6:1: internal compiler error: RTL flag check: CONSTANT_POOL_ADDRESS_P used with unexpected rtx code 'reg' in get_pool_constant, at varasm.cc:4046 6 | } | ^ 0x814a52 rtl_check_failed_flag(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl.cc:853 0x8b8dec get_pool_constant(rtx_def const*) /repo/gcc-trunk/gcc/varasm.cc:4046 0x1a0d17b ix86_broadcast_from_constant(machine_mode, rtx_def*) /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:612 0x1a337bb ix86_expand_ternlog(machine_mode, rtx_def*, rtx_def*, rtx_def*, int, rtx_def*) /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:26045 0x20c4517 gen_split_1541(rtx_insn*, rtx_def**) /repo/gcc-trunk/gcc/config/i386/sse.md:13050 0x26b8e98 split_79 /repo/gcc-trunk/gcc/config/i386/sse.md:14592 0x109a19a try_split(rtx_def*, rtx_insn*, int) /repo/gcc-trunk/gcc/emit-rtl.cc:3941 0x146f6f8 split_insn /repo/gcc-trunk/gcc/recog.cc:3405 0x1476595 split_all_insns() /repo/gcc-trunk/gcc/recog.cc:3509 0x14766b8 execute /repo/gcc-trunk/gcc/recog.cc:4433 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-r15-1122-20240609121028-g8bb6b2f4ae1-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/15.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 --enable-libsanitizer --disable-libstdcxx-pch --prefix=/repo/gcc-trunk//binary-trunk-r15-1122-20240609121028-g8bb6b2f4ae1-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20240609 (experimental) (GCC)