Message ID | ZmyF8M4N+6B6wT/S@tucnak |
---|---|
State | New |
Headers | show |
Series | [committed] testsuite: Add -Wno-psabi to vshuf-mem.C test | expand |
On 6/14/24 20:03, Jakub Jelinek wrote: > 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? Oh right. I'll remove that line and replicate the testcase in the arch specific test dir. Andreas
On Mon, Jun 17, 2024 at 09:09:37PM +0200, Andreas Krebbel wrote: > On 6/14/24 20:03, Jakub Jelinek wrote: > > 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? > > Oh right. I'll remove that line and replicate the testcase in the arch > specific test dir. Though, looking around some more, perhaps // { dg-additional-options "-march=z14" { target s390_vxe } } might be all that is needed, even in current dir. Jakub
--- gcc/testsuite/g++.dg/torture/vshuf-mem.C.jj 2024-06-14 19:45:09.116781920 +0200 +++ gcc/testsuite/g++.dg/torture/vshuf-mem.C 2024-06-14 19:56:08.744135867 +0200 @@ -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*-*-* } }