https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111062
Bug ID: 111062 Summary: ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f Product: gcc Version: 14.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 55755 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55755&action=edit reduced testcase Compiler output: $ x86_64-pc-linux-gnu-gcc -O -mavx10.1-256 -mavx512bw -mno-avx512f testcase.c cc1: warning: '-mno-avx512{f,vl,bw,dq,cd,bf16,fp16,vbmi,vbmi2,vnni,ifma,bitalg,vpopcntdq}' are ignored with '-mavx10.1' and above testcase.c: In function 'foo': testcase.c:7:1: warning: AVX512F vector return without AVX512F enabled changes the ABI [-Wpsabi] 7 | { | ^ testcase.c:10:1: error: could not split insn 10 | } | ^ (insn 24 111 25 2 (parallel [ (set (reg:DI 69 k1 [156]) (and:DI (not:DI (reg:DI 70 k2 [226])) (reg:DI 68 k0 [157]))) (clobber (reg:CC 17 flags)) ]) "testcase.c":9:12 624 {*andndi_1} (expr_list:REG_DEAD (reg:DI 70 k2 [226]) (expr_list:REG_UNUSED (reg:CC 17 flags) (nil)))) during RTL pass: final testcase.c:10:1: internal compiler error: in final_scan_insn_1, at final.cc:2808 0x7e6460 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.cc:108 0x74d1ee final_scan_insn_1 /repo/gcc-trunk/gcc/final.cc:2808 0x108b06b final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*) /repo/gcc-trunk/gcc/final.cc:2887 0x108b2a4 final_1 /repo/gcc-trunk/gcc/final.cc:1979 0x108bef8 rest_of_handle_final /repo/gcc-trunk/gcc/final.cc:4240 0x108bef8 execute /repo/gcc-trunk/gcc/final.cc:4318 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. -mno-avx512f needs to be passed, even though the compiler indicates it's ignored $ 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-r14-3320-20230818093638-g7f8d730a563-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.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 --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-r14-3320-20230818093638-g7f8d730a563-checking-yes-rtl-df-extra-nobootstrap-amd64 Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20230818 (experimental) (GCC)