* [PATCH, rs6000] Fix builtins-1-p9-runnable.c
@ 2017-07-07 21:10 Carl Love
0 siblings, 0 replies; only message in thread
From: Carl Love @ 2017-07-07 21:10 UTC (permalink / raw)
To: gcc-patches, David Edelsohn, Bill Schmidt; +Cc: Bill Schmidt, cel
GCC Maintainers:
The following patch causes the builtins-1-p9-runnable.c to be reported
as "unsupported test" rather then "unexpected fail" on non-power9
systems. The patched test does compile and run successfully on Power 9
with a report of 2 "expected passes". I was expecting the test to fail
on non power 9 systems, but this fix makes the test results much
cleaner.
Carl Love
----------------------------
2017-07-07 Carl Love <cel@us.ibm.com>
* gcc.target/powerpc/builtins-1-p9-runnable.c (dg-ddo run): Add
lp64 && p9vector_hw.
---
gcc/testsuite/gcc.target/powerpc/builtins-1-p9-runnable.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-1-p9-runnable.c
b/gcc/testsuite/gcc.target/powerpc/builtins-1-p9-runnable.c
index 790f64c..acaebb6 100644
--- a/gcc/testsuite/gcc.target/powerpc/builtins-1-p9-runnable.c
+++ b/gcc/testsuite/gcc.target/powerpc/builtins-1-p9-runnable.c
@@ -1,4 +1,4 @@
-/* { dg-do run { target { powerpc*-*-linux* } } } */
+/* { dg-do run { target { powerpc*-*-linux* && { lp64 &&
p9vector_hw } } } } */
/* { dg-require-effective-target powerpc_p9vector_ok } */
/* { dg-options "-O2 -mcpu=power9" } */
/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" }
{ "-mcpu=power9" } } */
--
1.9.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-07-07 21:10 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-07 21:10 [PATCH, rs6000] Fix builtins-1-p9-runnable.c Carl Love
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).