https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101863
Bug ID: 101863 Summary: ICE: in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20485 with -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 51288 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51288&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mavx512f testcase.c during GIMPLE pass: forwprop testcase.c: In function 'foo': testcase.c:5:1: internal compiler error: in expand_vec_perm_broadcast_1, at config/i386/i386-expand.c:20485 5 | foo (V v) | ^~~ 0x7ec0af expand_vec_perm_broadcast_1 /repo/gcc-trunk/gcc/config/i386/i386-expand.c:20485 0x14e662f expand_vec_perm_broadcast /repo/gcc-trunk/gcc/config/i386/i386-expand.c:20505 0x14e662f ix86_expand_vec_perm_const_1 /repo/gcc-trunk/gcc/config/i386/i386-expand.c:20716 0x14e662f ix86_expand_vec_perm_const_1 /repo/gcc-trunk/gcc/config/i386/i386-expand.c:20699 0x150e3de ix86_vectorize_vec_perm_const(machine_mode, rtx_def*, rtx_def*, rtx_def*, vec_perm_indices const&) /repo/gcc-trunk/gcc/config/i386/i386-expand.c:21002 0x11e68b4 simplify_vector_constructor /repo/gcc-trunk/gcc/tree-ssa-forwprop.c:2670 0x11e68b4 execute /repo/gcc-trunk/gcc/tree-ssa-forwprop.c:3405 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/bin/x86_64-pc-linux-gnu-gcc COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r12-2846-20210811072927-ga45918f8a74-checking-yes-rtl-df-extra-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.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 --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-2846-20210811072927-ga45918f8a74-checking-yes-rtl-df-extra-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 12.0.0 20210811 (experimental) (GCC)