public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-105] PR testsuite/106879 FAIL: gcc.dg/vect/bb-slp-layout-19.c on powerpc64
@ 2023-04-20 3:19 Jiu Fu Guo
0 siblings, 0 replies; only message in thread
From: Jiu Fu Guo @ 2023-04-20 3:19 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:57e7229a29ca0e9929b61051e4f5857f0b41b6c7
commit r14-105-g57e7229a29ca0e9929b61051e4f5857f0b41b6c7
Author: Jiufu Guo <guojiufu@linux.ibm.com>
Date: Tue Apr 18 15:56:53 2023 +0800
PR testsuite/106879 FAIL: gcc.dg/vect/bb-slp-layout-19.c on powerpc64
On P7, option -mno-allow-movmisalign is added during testing, which
prevents slp happen on the case.
Like PR65484 and PR87306, this patch use vect_hw_misalign to guard
the case on powerpc targets.
gcc/testsuite/ChangeLog:
PR testsuite/106879
* gcc.dg/vect/bb-slp-layout-19.c: Modify to guard the check with
vect_hw_misalign on POWERs.
Diff:
---
gcc/testsuite/gcc.dg/vect/bb-slp-layout-19.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-layout-19.c b/gcc/testsuite/gcc.dg/vect/bb-slp-layout-19.c
index f075a83a25b..847a07bd5be 100644
--- a/gcc/testsuite/gcc.dg/vect/bb-slp-layout-19.c
+++ b/gcc/testsuite/gcc.dg/vect/bb-slp-layout-19.c
@@ -31,4 +31,9 @@ void f()
e[3] = b3;
}
-/* { dg-final { scan-tree-dump-times "add new stmt: \[^\\n\\r\]* = VEC_PERM_EXPR" 3 "slp1" { target { vect_int_mult && vect_perm } } } } */
+/* On older powerpc hardware (POWER7 and earlier), the default flag
+ -mno-allow-movmisalign prevents vectorization. On POWER8 and later,
+ when vect_hw_misalign is true, vectorization occurs. For other
+ targets, ! vect_no_align is a sufficient test. */
+
+/* { dg-final { scan-tree-dump-times "add new stmt: \[^\\n\\r\]* = VEC_PERM_EXPR" 3 "slp1" { target { { vect_int_mult && vect_perm } && { { ! powerpc*-*-* } || { vect_hw_misalign } } } } } } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-20 3:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-20 3:19 [gcc r14-105] PR testsuite/106879 FAIL: gcc.dg/vect/bb-slp-layout-19.c on powerpc64 Jiu Fu Guo
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).