public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256
@ 2021-01-13 11:46 acoplan at gcc dot gnu.org
2021-01-13 11:46 ` [Bug target/98657] " acoplan at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-01-13 11:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
Bug ID: 98657
Summary: SVE: ICE (unrecognizable insn) wtih shift at -O3
-msve-vector-bits=256
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
Assignee: unassigned at gcc dot gnu.org
Reporter: acoplan at gcc dot gnu.org
Target Milestone: ---
The following fails:
$ cat test.c
extern char a[];
void b(_Bool c[][18]) {
for (int d;;)
for (int e = 0; e < 23; e += 1)
a[e] = 6 >> c[1][d];
}
$ aarch64-elf-gcc -c test.c -O3 -march=armv8.2-a+sve -msve-vector-bits=256
test.c: In function 'b':
test.c:6:1: error: unrecognizable insn:
6 | }
| ^
(insn 34 33 35 5 (set (reg:VNx16QI 132)
(unspec:VNx16QI [
(reg:VNx16BI 133)
(vec_duplicate:VNx16QI (mem:QI (plus:DI (reg/f:DI 128)
(reg:DI 129)) [1 MEM[(_Bool[18] *)c_9(D) +
18B][d_10(D)]+0 S1 A8]))
(const_vector:VNx16QI [
(const_int 0 [0]) repeated x32
])
] UNSPEC_SEL)) "test.c":5:16 -1
(nil))
during RTL pass: vregs
test.c:6:1: internal compiler error: in extract_insn, at recog.c:2769
0xd621cd _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:108
0xd621ec _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/home/alecop01/toolchain/src/gcc/gcc/rtl-error.c:116
0xd3217f extract_insn(rtx_insn*)
/home/alecop01/toolchain/src/gcc/gcc/recog.c:2769
0xa540b1 instantiate_virtual_regs_in_insn
/home/alecop01/toolchain/src/gcc/gcc/function.c:1609
0xa540b1 instantiate_virtual_regs
/home/alecop01/toolchain/src/gcc/gcc/function.c:1983
0xa540b1 execute
/home/alecop01/toolchain/src/gcc/gcc/function.c:2032
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/98657] SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
@ 2021-01-13 11:46 ` acoplan at gcc dot gnu.org
2021-01-13 11:49 ` acoplan at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-01-13 11:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
Alex Coplan <acoplan at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |11.0
Target| |aarch64
Keywords| |ice-on-valid-code
Target Milestone|--- |11.0
CC| |rsandifo at gcc dot gnu.org
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/98657] SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
2021-01-13 11:46 ` [Bug target/98657] " acoplan at gcc dot gnu.org
@ 2021-01-13 11:49 ` acoplan at gcc dot gnu.org
2021-01-13 16:07 ` [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with " ktkachov at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: acoplan at gcc dot gnu.org @ 2021-01-13 11:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
--- Comment #1 from Alex Coplan <acoplan at gcc dot gnu.org> ---
Slightly cleaner testcase:
extern char a[];
void b(_Bool c[][18]) {
int d;
for (int e = 0; e < 23; e++)
a[e] = 6 >> c[1][d];
}
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with shift at -O3 -msve-vector-bits=256
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
2021-01-13 11:46 ` [Bug target/98657] " acoplan at gcc dot gnu.org
2021-01-13 11:49 ` acoplan at gcc dot gnu.org
@ 2021-01-13 16:07 ` ktkachov at gcc dot gnu.org
2021-02-19 9:19 ` cvs-commit at gcc dot gnu.org
2021-02-19 9:22 ` avieira at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2021-01-13 16:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
ktkachov at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Priority|P3 |P1
Last reconfirmed| |2021-01-13
Status|UNCONFIRMED |NEW
Known to work| |10.2.1
Summary|SVE: ICE (unrecognizable |[11 Regression] SVE: ICE
|insn) wtih shift at -O3 |(unrecognizable insn) with
|-msve-vector-bits=256 |shift at -O3
| |-msve-vector-bits=256
CC| |ktkachov at gcc dot gnu.org
--- Comment #2 from ktkachov at gcc dot gnu.org ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with shift at -O3 -msve-vector-bits=256
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
` (2 preceding siblings ...)
2021-01-13 16:07 ` [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with " ktkachov at gcc dot gnu.org
@ 2021-02-19 9:19 ` cvs-commit at gcc dot gnu.org
2021-02-19 9:22 ` avieira at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-02-19 9:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Andre Simoes Dias Vieira
<avieira@gcc.gnu.org>:
https://gcc.gnu.org/g:6070e39cd0af6ac4a88004c8b1b6a900a8bbce36
commit r11-7291-g6070e39cd0af6ac4a88004c8b1b6a900a8bbce36
Author: Andre Vieira <andre.simoesdiasvieira@arm.com>
Date: Fri Feb 19 09:13:02 2021 +0000
aarch64: Check predicate when using gen_vec_duplicate [PR98657]
Prevents generation of a vec_duplicate with illegal predicate in
<ASHIFT:optab><mode>3.
gcc/ChangeLog:
2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
PR target/98657
* config/aarch64/aarch64-sve.md (<ASHIFT:optab><mode>3): Use
expand_vector_broadcast' to emit the vec_duplicate operand.
gcc/testsuite/ChangeLog:
2021-02-19 Andre Vieira <andre.simoesdiasvieira@arm.com>
PR target/98657
* gcc.target/aarch64/sve/pr98657.c: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with shift at -O3 -msve-vector-bits=256
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
` (3 preceding siblings ...)
2021-02-19 9:19 ` cvs-commit at gcc dot gnu.org
@ 2021-02-19 9:22 ` avieira at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: avieira at gcc dot gnu.org @ 2021-02-19 9:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98657
avieira at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #4 from avieira at gcc dot gnu.org ---
That should have fixed it. Closing.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-02-19 9:22 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-13 11:46 [Bug target/98657] New: SVE: ICE (unrecognizable insn) wtih shift at -O3 -msve-vector-bits=256 acoplan at gcc dot gnu.org
2021-01-13 11:46 ` [Bug target/98657] " acoplan at gcc dot gnu.org
2021-01-13 11:49 ` acoplan at gcc dot gnu.org
2021-01-13 16:07 ` [Bug target/98657] [11 Regression] SVE: ICE (unrecognizable insn) with " ktkachov at gcc dot gnu.org
2021-02-19 9:19 ` cvs-commit at gcc dot gnu.org
2021-02-19 9:22 ` avieira 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).