public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/111062] New: ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f
@ 2023-08-18 10:52 zsojka at seznam dot cz
2023-08-21 1:03 ` [Bug target/111062] " crazylht at gmail dot com
2023-11-30 10:48 ` liuhongt at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: zsojka at seznam dot cz @ 2023-08-18 10:52 UTC (permalink / raw)
To: gcc-bugs
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/111062] ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f
2023-08-18 10:52 [Bug target/111062] New: ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f zsojka at seznam dot cz
@ 2023-08-21 1:03 ` crazylht at gmail dot com
2023-11-30 10:48 ` liuhongt at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: crazylht at gmail dot com @ 2023-08-21 1:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111062
--- Comment #1 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Zdenek Sojka from comment #0)
> Created attachment 55755 [details]
> 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
Warning message can be a little confusing.
A better formulation might be: with avx10.1 enabled, -mno-avx512f does not
fully disable AVX512-related instructions.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug target/111062] ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f
2023-08-18 10:52 [Bug target/111062] New: ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f zsojka at seznam dot cz
2023-08-21 1:03 ` [Bug target/111062] " crazylht at gmail dot com
@ 2023-11-30 10:48 ` liuhongt at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2023-11-30 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111062
liuhongt at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |liuhongt at gcc dot gnu.org
Resolution|--- |FIXED
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from liuhongt at gcc dot gnu.org ---
Fixed in GCC14.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-30 10:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-18 10:52 [Bug target/111062] New: ICE: in final_scan_insn_1, at final.cc:2808 could not split insn {*andndi_1} with -O -mavx10.1-256 -mavx512bw -mno-avx512f zsojka at seznam dot cz
2023-08-21 1:03 ` [Bug target/111062] " crazylht at gmail dot com
2023-11-30 10:48 ` liuhongt at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).