public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3070] Fix ICE.
@ 2021-08-23 9:52 hongtao Liu
0 siblings, 0 replies; only message in thread
From: hongtao Liu @ 2021-08-23 9:52 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:70c7ab5c487f392e04907ce8f22eb454b8d3c4ff
commit r12-3070-g70c7ab5c487f392e04907ce8f22eb454b8d3c4ff
Author: liuhongt <hongtao.liu@intel.com>
Date: Mon Aug 23 17:00:36 2021 +0800
Fix ICE.
gcc/ChangeLog:
PR target/102016
* config/i386/sse.md (*avx512f_pshufb_truncv8hiv8qi_1): Add
TARGET_AVX512BW to condition.
gcc/testsuite/ChangeLog:
PR target/102016
* gcc.target/i386/pr102016.c: New test.
Diff:
---
gcc/config/i386/sse.md | 2 +-
gcc/testsuite/gcc.target/i386/pr102016.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index 13889687793..95f95823ea3 100644
--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -11256,7 +11256,7 @@
(match_operand:V16QI 2 "pshufb_truncv8hiv8qi_operand")]
UNSPEC_PSHUFB) 0)
(parallel [(const_int 0)])))]
- "TARGET_AVX512VL && ix86_pre_reload_split ()"
+ "TARGET_AVX512VL && TARGET_AVX512BW && ix86_pre_reload_split ()"
"#"
"&& 1"
[(const_int 0)]
diff --git a/gcc/testsuite/gcc.target/i386/pr102016.c b/gcc/testsuite/gcc.target/i386/pr102016.c
new file mode 100644
index 00000000000..2ff75cb898a
--- /dev/null
+++ b/gcc/testsuite/gcc.target/i386/pr102016.c
@@ -0,0 +1,10 @@
+/* { dg-do compile } */
+/* { dg-options "-mavx512vl -O2" } */
+typedef char v8qi __attribute__((vector_size (8)));
+typedef char v16qi __attribute__((vector_size (16)));
+v8qi
+foo_wb_128 (v16qi x)
+{
+ return __builtin_shufflevector (x, x,
+ 0, 2, 4, 6, 8, 10, 12, 14);
+}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-08-23 9:52 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 9:52 [gcc r12-3070] Fix ICE hongtao Liu
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).