https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104451
Bug ID: 104451 Summary: ICE: in emit_move_insn, at expr.cc:4010 with -O -mxop -mavx512f 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 52380 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52380&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mxop -mavx512f testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:7:12: internal compiler error: in emit_move_insn, at expr.cc:4010 7 | return v << c; | ~~^~~~ 0x6ca000 emit_move_insn(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/expr.cc:4010 0xf7c505 force_reg(machine_mode, rtx_def*) /repo/gcc-trunk/gcc/explow.cc:688 0x17a8aba ix86_vector_duplicate_value /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:14768 0x17d00f2 ix86_expand_vector_init(bool, rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/i386/i386-expand.cc:15888 0x1e76e71 gen_vec_initv64qiqi(rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/i386/sse.md:25960 0x1e76e71 gen_ashlv16qi3(rtx_def*, rtx_def*, rtx_def*) /repo/gcc-trunk/gcc/config/i386/sse.md:24160 0x1240ffe expand_binop_directly /repo/gcc-trunk/gcc/optabs.cc:1442 0x123ea21 expand_binop(machine_mode, optab_tag, rtx_def*, rtx_def*, rtx_def*, int, optab_methods) /repo/gcc-trunk/gcc/optabs.cc:1529 0xf81954 expand_shift_1 /repo/gcc-trunk/gcc/expmed.cc:2661 0xf89083 expand_variable_shift(tree_code, machine_mode, rtx_def*, tree_node*, rtx_def*, int) /repo/gcc-trunk/gcc/expmed.cc:2713 0xf9c3bd expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.cc:9931 0xfa2ce7 expand_expr_real_1(tree_node*, rtx_def*, machine_mode, expand_modifier, rtx_def**, bool) /repo/gcc-trunk/gcc/expr.cc:10504 0xe6709c expand_expr /repo/gcc-trunk/gcc/expr.h:301 0xe6709c expand_return /repo/gcc-trunk/gcc/cfgexpand.cc:3793 0xe6709c expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.cc:3902 0xe6709c expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.cc:4028 0xe6cd8e expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.cc:6069 0xe6e987 execute /repo/gcc-trunk/gcc/cfgexpand.cc:6795 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-r12-7089-20220208123931-g0103c2e4082-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.1/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 --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-7089-20220208123931-g0103c2e4082-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.1 20220208 (experimental) (GCC)