https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121410
Bug ID: 121410 Summary: [16 Regression] ICE: in expand_set_or_cpymem_prologue_epilogue_by_misaligned_m oves, at config/i386/i386-expand.cc:8872 with -O2 -mavx512f -mstore-max=128 Product: gcc Version: 16.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 62052 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62052&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O2 -mavx512f -mstore-max=128 testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:6:22: internal compiler error: in expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves, at config/i386/i386-expand.cc:8872 6 | _BitInt(465) b = a >> 1860; | ~~^~~~~~~ 0x2b7ae21 internal_error(char const*, ...) /repo/gcc-trunk/gcc/diagnostic-global-context.cc:534 0xe0769b fancy_abort(char const*, int, char const*) /repo/gcc-trunk/gcc/diagnostics/context.cc:1640 0x954e28 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:8872 0x1b40f1f ix86_expand_set_or_cpymem(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, bool) /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:9689 0x23959d1 gen_setmemsi(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/i386/i386.md:26060 0x143ddd5 rtx_insn* insn_gen_fn::operator()<rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*>(rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*, rtx_def*) const /repo/gcc-trunk/gcc/recog.h:472 0x143ddd5 maybe_gen_insn(insn_code, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.cc:8237 0x1442838 maybe_expand_insn(insn_code, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.cc:8257 0x1110d06 set_storage_via_setmem(rtx_def*, rtx_def*, rtx_def*, unsigned int, unsigned int, long, unsigned long, unsigned long, unsigned long) /repo/gcc-trunk/gcc/expr.cc:4043 0x112676d clear_storage_hints(rtx_def*, rtx_def*, block_op_methods, unsigned int, long, unsigned long, unsigned long, unsigned long, unsigned int) /repo/gcc-trunk/gcc/expr.cc:3908 0xfa7c50 expand_builtin_memset_args /repo/gcc-trunk/gcc/builtins.cc:4768 0xfafe2c expand_builtin(tree_node*, rtx_def*, rtx_def*, machine_mode, int) /repo/gcc-trunk/gcc/builtins.cc:8265 0x111dc8e expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:12535 0xfded00 expand_expr(tree_node*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.h:323 0xfded00 expand_call_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:3204 0xfded00 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:4235 0xfded00 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4382 0xfe0387 expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6501 0xfe2787 execute /repo/gcc-trunk/gcc/cfgexpand.cc:7248 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-20250805033710-r16-2774-g01a784e7c5e724-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/16.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 --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-20250805033710-r16-2774-g01a784e7c5e724-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 16.0.0 20250805 (experimental) (GCC)