]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Add -Wno-psabi to vshuf-mem.C test
authorJakub Jelinek <jakub@redhat.com>
Fri, 14 Jun 2024 17:57:59 +0000 (19:57 +0200)
committerJakub Jelinek <jakub@redhat.com>
Fri, 14 Jun 2024 17:57:59 +0000 (19:57 +0200)
The newly added test FAILs on i686-linux.
On x86_64-linux
make check-g++ RUNTESTFLAGS='--target_board=unix\{-m64,-m32/-msse2,-m32/-mno-sse/-mno-mmx\} dg-torture.exp=vshuf-mem.C'
shows that as well.

The problem is that without SSE2/MMX the vector is passed differently
than normally and so GCC warns about that.
-Wno-psabi is the usual way to shut it up.

Also wonder about the
// { dg-additional-options "-march=z14" { target s390*-*-* } }
line, doesn't that mean the test will FAIL on all pre-z14 HW?
Shouldn't it use some z14_runtime or similar effective target, or
check in main (in that case copied over to g++.target/s390) whether
z14 instructions can be actually used at runtime?

2024-06-14  Jakub Jelinek  <jakub@redhat.com>

* g++.dg/torture/vshuf-mem.C: Add -Wno-psabi to dg-options.

gcc/testsuite/g++.dg/torture/vshuf-mem.C

index 5f1ebf65665c72f5d7295376cc7376c627bf3839..6d892f876be5c322b590f02c6e1712e296c97aed 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-options "-std=c++11" }
+// { dg-options "-std=c++11 -Wno-psabi" }
 // { dg-do run }
 // { dg-additional-options "-march=z14" { target s390*-*-* } }