public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4
@ 2023-11-14 20:04 zsojka at seznam dot cz
2023-11-15 6:39 ` [Bug target/112532] " sjames at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: zsojka at seznam dot cz @ 2023-11-14 20:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
Bug ID: 112532
Summary: [14 Regression] ICE: in extract_insn, at recog.cc:2804
(unrecognizable insn: vec_duplicate:V4HI) with -O
-msse4
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 56586
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56586&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -O -msse4 testcase.c
testcase.c: In function 'foo0':
testcase.c:26:1: error: unrecognizable insn:
26 | }
| ^
(insn 58 56 59 2 (set (reg:V4HI 20 xmm0 [129])
(vec_duplicate:V4HI (reg:HI 22 xmm2 [123]))) "testcase.c":16:21 -1
(nil))
during RTL pass: split2
testcase.c:26:1: internal compiler error: in extract_insn, at recog.cc:2804
0x7f5c79 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/repo/gcc-trunk/gcc/rtl-error.cc:108
0x7f5cf6 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/repo/gcc-trunk/gcc/rtl-error.cc:116
0x7e4b65 extract_insn(rtx_insn*)
/repo/gcc-trunk/gcc/recog.cc:2804
0x14168c4 extract_insn_cached(rtx_insn*)
/repo/gcc-trunk/gcc/recog.cc:2693
0x10af2a4 cleanup_subreg_operands(rtx_insn*)
/repo/gcc-trunk/gcc/final.cc:3054
0x1414088 split_insn
/repo/gcc-trunk/gcc/recog.cc:3419
0x141ad65 split_all_insns()
/repo/gcc-trunk/gcc/recog.cc:3487
0x141ae88 execute
/repo/gcc-trunk/gcc/recog.cc:4411
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.
$ 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-5443-20231114122339-gb9fd8399ec0-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-5443-20231114122339-gb9fd8399ec0-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231114 (experimental) (GCC)
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
@ 2023-11-15 6:39 ` sjames at gcc dot gnu.org
2023-11-15 7:30 ` [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be sjames at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-15 6:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sjames at gcc dot gnu.org
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
Reproduced on trunk but r14-5371-g93e92b2e5d6866 is okay, will bisect
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
2023-11-15 6:39 ` [Bug target/112532] " sjames at gcc dot gnu.org
@ 2023-11-15 7:30 ` sjames at gcc dot gnu.org
2023-11-15 7:56 ` crazylht at gmail dot com
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-15 7:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |crazylht at gmail dot com
Summary|[14 Regression] ICE: in |[14 Regression] ICE: in
|extract_insn, at |extract_insn, at
|recog.cc:2804 |recog.cc:2804
|(unrecognizable insn: |(unrecognizable insn:
|vec_duplicate:V4HI) with -O |vec_duplicate:V4HI) with -O
|-msse4 |-msse4 since
| |r14-5388-g2794d510b979be
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
2794d510b979be76b0fee4521d1a454332176007 is the first bad commit
commit 2794d510b979be76b0fee4521d1a454332176007
Author: liuhongt <hongtao.liu@intel.com>
Date: Wed Nov 8 14:52:01 2023 +0800
Support vec_set/vec_extract/vec_init for V4HF/V2HF.
i.e. r14-5388-g2794d510b979be
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
2023-11-15 6:39 ` [Bug target/112532] " sjames at gcc dot gnu.org
2023-11-15 7:30 ` [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be sjames at gcc dot gnu.org
@ 2023-11-15 7:56 ` crazylht at gmail dot com
2023-11-15 7:58 ` sjames at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: crazylht at gmail dot com @ 2023-11-15 7:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
--- Comment #3 from Hongtao.liu <crazylht at gmail dot com> ---
mine.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
` (2 preceding siblings ...)
2023-11-15 7:56 ` crazylht at gmail dot com
@ 2023-11-15 7:58 ` sjames at gcc dot gnu.org
2023-11-15 11:56 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2023-11-15 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2023-11-15
Assignee|unassigned at gcc dot gnu.org |liuhongt at gcc dot gnu.org
--- Comment #4 from Sam James <sjames at gcc dot gnu.org> ---
btw: if you change your email on bugzilla to liuhongt@gcc.gnu.org, you'll get
more permissions to edit bugs.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
` (3 preceding siblings ...)
2023-11-15 7:58 ` sjames at gcc dot gnu.org
@ 2023-11-15 11:56 ` rguenth at gcc dot gnu.org
2023-11-16 1:58 ` liuhongt at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-15 11:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |14.0
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
` (4 preceding siblings ...)
2023-11-15 11:56 ` rguenth at gcc dot gnu.org
@ 2023-11-16 1:58 ` liuhongt at gcc dot gnu.org
2023-11-16 10:48 ` cvs-commit at gcc dot gnu.org
2023-11-16 10:49 ` liuhongt at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2023-11-16 1:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
--- Comment #5 from liuhongt at gcc dot gnu.org ---
(In reply to Sam James from comment #4)
> btw: if you change your email on bugzilla to liuhongt@gcc.gnu.org, you'll
> get more permissions to edit bugs.
Ok, thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
` (5 preceding siblings ...)
2023-11-16 1:58 ` liuhongt at gcc dot gnu.org
@ 2023-11-16 10:48 ` cvs-commit at gcc dot gnu.org
2023-11-16 10:49 ` liuhongt at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-16 10:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
--- Comment #6 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by hongtao Liu <liuhongt@gcc.gnu.org>:
https://gcc.gnu.org/g:e36d5f424a0dcb984620a172c73da989f215dc42
commit r14-5525-ge36d5f424a0dcb984620a172c73da989f215dc42
Author: liuhongt <hongtao.liu@intel.com>
Date: Wed Nov 15 16:50:44 2023 +0800
Fix ICE of unrecognizable insn.
The new added splitter will generate
(insn 58 56 59 2 (set (reg:V4HI 20 xmm0 [129])
(vec_duplicate:V4HI (reg:HI 22 xmm2 [123]))) "testcase.c":16:21 -1
But we only have
(define_insn "*vec_dupv4hi"
[(set (match_operand:V4HI 0 "register_operand" "=y,Yw")
(vec_duplicate:V4HI
(truncate:HI
(match_operand:SI 1 "register_operand" "0,Yw"))))]
The patch add patterns for V4HI and V2HI.
gcc/ChangeLog:
PR target/112532
* config/i386/mmx.md (*vec_dup<mode>): Extend for V4HI and
V2HI.
gcc/testsuite/ChangeLog:
* gcc.target/i386/pr112532.c: New test.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
` (6 preceding siblings ...)
2023-11-16 10:48 ` cvs-commit at gcc dot gnu.org
@ 2023-11-16 10:49 ` liuhongt at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: liuhongt at gcc dot gnu.org @ 2023-11-16 10:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112532
liuhongt at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #7 from liuhongt at gcc dot gnu.org ---
Fixed in GCC14.
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2023-11-16 10:49 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-14 20:04 [Bug target/112532] New: [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 zsojka at seznam dot cz
2023-11-15 6:39 ` [Bug target/112532] " sjames at gcc dot gnu.org
2023-11-15 7:30 ` [Bug target/112532] [14 Regression] ICE: in extract_insn, at recog.cc:2804 (unrecognizable insn: vec_duplicate:V4HI) with -O -msse4 since r14-5388-g2794d510b979be sjames at gcc dot gnu.org
2023-11-15 7:56 ` crazylht at gmail dot com
2023-11-15 7:58 ` sjames at gcc dot gnu.org
2023-11-15 11:56 ` rguenth at gcc dot gnu.org
2023-11-16 1:58 ` liuhongt at gcc dot gnu.org
2023-11-16 10:48 ` cvs-commit at gcc dot gnu.org
2023-11-16 10:49 ` 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).