aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Christ <jchrist@linux.ibm.com>2025-07-09 11:19:50 +0200
committerJuergen Christ <jchrist@linux.ibm.com>2025-07-09 12:27:12 +0200
commitd6161f9e0d39670afca5afff0a5c56c258f43200 (patch)
tree1c57ba5fbdd980f8746a06cb47c688c3eee756f9
parent3c0db87b13ed034196d8b77f1acdf40a538d585f (diff)
downloadgcc-d6161f9e0d39670afca5afff0a5c56c258f43200.zip
gcc-d6161f9e0d39670afca5afff0a5c56c258f43200.tar.gz
gcc-d6161f9e0d39670afca5afff0a5c56c258f43200.tar.bz2
s390: Fix vector pattern tests for -m31.
Vectorization of int patterns requires 64bit long type (at least the way the tests are coded). Fix this to only test for successful vectoriation on 64bit targets. Signed-off-by: Juergen Christ <jchrist@linux.ibm.com> gcc/testsuite/ChangeLog: * gcc.target/s390/vector/pattern-avg-1.c: Fix on -m31. * gcc.target/s390/vector/pattern-mulh-1.c: Fix on -m31. * gcc.target/s390/vector/pattern-mulh-2.c: Fix on -m31.
-rw-r--r--gcc/testsuite/gcc.target/s390/vector/pattern-avg-1.c3
-rw-r--r--gcc/testsuite/gcc.target/s390/vector/pattern-mulh-1.c3
-rw-r--r--gcc/testsuite/gcc.target/s390/vector/pattern-mulh-2.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/s390/vector/pattern-avg-1.c b/gcc/testsuite/gcc.target/s390/vector/pattern-avg-1.c
index 30c6ed4..285ebc9 100644
--- a/gcc/testsuite/gcc.target/s390/vector/pattern-avg-1.c
+++ b/gcc/testsuite/gcc.target/s390/vector/pattern-avg-1.c
@@ -22,4 +22,5 @@ TEST(char,short,16)
TEST(short,int,8)
TEST(int,long,4)
-/* { dg-final { scan-tree-dump-times "\.AVG_CEIL" 6 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\.AVG_CEIL" 6 "optimized" { target lp64 } } } */
+/* { dg-final { scan-tree-dump-times "\.AVG_CEIL" 4 "optimized" { target { ! lp64 } } } } */
diff --git a/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-1.c b/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-1.c
index f71ef06..f0b37d6 100644
--- a/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-1.c
+++ b/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-1.c
@@ -23,6 +23,5 @@
TEST(char,short,16,8)
TEST(short,int,8,16)
-TEST(int,long,4,32)
-/* { dg-final { scan-tree-dump-times "\.MULH" 6 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\.MULH" 4 "optimized" } } */
diff --git a/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-2.c b/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-2.c
index 6ac6855..2ff66b7 100644
--- a/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-2.c
+++ b/gcc/testsuite/gcc.target/s390/vector/pattern-mulh-2.c
@@ -21,6 +21,7 @@
(((unsigned T2)l[i] * (unsigned T2)r[i]) >> S); \
}
+TEST(int,long,4,32)
TEST(long,__int128,2,64)
-/* { dg-final { scan-tree-dump-times "\.MULH" 2 "optimized" } } */
+/* { dg-final { scan-tree-dump-times "\.MULH" 4 "optimized" } } */