https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83623
Bug ID: 83623 Summary: [8 Regression] ICE: in convert_move, at expr.c:248 with -march=knl and 16bit vector bswap/rotate Product: gcc Version: 8.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 42982 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=42982&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -march=knl testcase.c during RTL pass: expand testcase.c: In function 'foo': testcase.c:6:14: internal compiler error: in convert_move, at expr.c:248 x = x << 8 | x >> 8; ~~~~~~~^~~~~~~~ 0x9858cc convert_move(rtx_def*, rtx_def*, int) /repo/gcc-trunk/gcc/expr.c:248 0x985d25 convert_modes(machine_mode, machine_mode, rtx_def*, int) /repo/gcc-trunk/gcc/expr.c:706 0xbf7f21 maybe_legitimize_operand /repo/gcc-trunk/gcc/optabs.c:7096 0xbf7f21 maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.c:7145 0xbf8589 maybe_gen_insn(insn_code, unsigned int, expand_operand*) /repo/gcc-trunk/gcc/optabs.c:7163 0xc0265f expand_unop_direct /repo/gcc-trunk/gcc/optabs.c:2694 0xc00786 expand_unop(machine_mode, optab_tag, rtx_def*, rtx_def*, int) /repo/gcc-trunk/gcc/optabs.c:2736 0x96cd23 expand_variable_shift(tree_code, machine_mode, rtx_def*, tree_node*, rtx_def*, int) /repo/gcc-trunk/gcc/expmed.c:2661 0x995dbf expand_expr_real_2(separate_ops*, rtx_def*, machine_mode, expand_modifier) /repo/gcc-trunk/gcc/expr.c:9310 0x8486e3 expand_gimple_stmt_1 /repo/gcc-trunk/gcc/cfgexpand.c:3729 0x8486e3 expand_gimple_stmt /repo/gcc-trunk/gcc/cfgexpand.c:3790 0x84a29d expand_gimple_basic_block /repo/gcc-trunk/gcc/cfgexpand.c:5797 0x84fe06 execute /repo/gcc-trunk/gcc/cfgexpand.c:6403 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-amd64/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-256032-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.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 --without-cloog --without-ppl --without-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-256032-checking-yes-rtl-df-extra-nobootstrap-nographite-amd64 Thread model: posix gcc version 8.0.0 20171229 (experimental) (GCC)