https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101896
Bug ID: 101896 Summary: [12 Regression] ICE in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20481 since r12-2837-g50b5877925ef5ae8 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: marxin at gcc dot gnu.org CC: jakub at gcc dot gnu.org Target Milestone: --- The following fails: $ gcc /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-v64qi.c -Ofast -mavx512er -c during GIMPLE pass: veclower2 In file included from /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-v64qi.c:11: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc: In function ‘test_1’: /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc:10:1: internal compiler error: in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20484 10 | test_##num (void) \ | ^~~~~ /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-64.inc:4:1: note: in expansion of macro ‘T’ 4 | T (1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0) \ | ^ /home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/torture/vshuf-main.inc:28:1: note: in expansion of macro ‘TESTS’ 28 | TESTS | ^~~~~ 0x175e59a expand_vec_perm_broadcast_1 /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20484 0x175e679 expand_vec_perm_broadcast /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20512 0x175f2a2 ix86_expand_vec_perm_const_1 /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:20723 0x175fd8c ix86_vectorize_vec_perm_const(machine_mode, rtx_def*, rtx_def*, rtx_def*, vec_perm_indices const&) /home/marxin/Programming/gcc/gcc/config/i386/i386-expand.c:21009 0x1423722 lower_vec_perm /home/marxin/Programming/gcc/gcc/tree-vect-generic.c:1521 0x1426adc expand_vector_operations_1 /home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2099 0x1428b25 expand_vector_operations /home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2364 0x1428d3e execute /home/marxin/Programming/gcc/gcc/tree-vect-generic.c:2450 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.