testsuite: Add appropriate target requirements to P9 testcases.
authorDavid Edelsohn <dje.gcc@gmail.com>
Thu, 15 Oct 2020 02:05:09 +0000 (22:05 -0400)
committerDavid Edelsohn <dje.gcc@gmail.com>
Thu, 15 Oct 2020 17:04:31 +0000 (13:04 -0400)
This patch adds effective target and target specific expected results
to a few P9 testcases.

gcc/testsuite/ChangeLog:

* gcc.target/powerpc/builtins-5-p9-runnable.c: Require lp64.
* gcc.target/powerpc/builtins-msum-runnable.c: Require int128.
* gcc.target/powerpc/float128-cmp2-runnable.c: Require float128.
* gcc.target/powerpc/fold-vec-extract-double.p9.c: Require lp64.

gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c
gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c
gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c
gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c

index 0fe62064cbec284180d45b13662abfa543f595c1..14e935513fe1edb2a06cf68902d46cba97afe5b3 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run } */
+/* { dg-do run { target lp64 } } */
 /* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
 
index 0fa5c319b6debedd093a1d83055f15100e22579f..abc0a0d28320f45ee5df1bcb1c854c5c46238981 100644 (file)
@@ -1,4 +1,6 @@
-/* { dg-do run { target { p9vector_hw } } } */
+/* { dg-do run } */
+/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target int128 } */
 /* { dg-options "-mdejagnu-cpu=power9 -O2" } */
 
 #include <altivec.h>
index 93dd1128a3fa06db889cb9ba853ac7ebc37d8ce0..d376a3ca68ec9d01f6e3eb3d571ca8847445a74f 100644 (file)
@@ -1,4 +1,6 @@
-/* { dg-do run { target { powerpc*-*-* &&  p9vector_hw } } } */
+/* { dg-do run } */
+/* { dg-require-effective-target ppc_float128_sw } */
+/* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-O2 -mdejagnu-cpu=power9 " } */
 
 #define NAN_Q __builtin_nanq ("")
index 2a3bfc157c6ecbf0e99a4f25781a5e6005ec25ee..6c515035d1a1fcdec2e63c275fb41aaed82b73d0 100644 (file)
@@ -5,10 +5,10 @@
 /* { dg-require-effective-target p9vector_hw } */
 /* { dg-options "-mdejagnu-cpu=power9 -O2 " } */
 
-/* { dg-final { scan-assembler-times {\mxxlor\M} 2 } } */
-/* { dg-final { scan-assembler-times {\mrldic\M} 1 } } */
-/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 } } */
-/* { dg-final { scan-assembler-times {\mvslo\M} 1 } } */
+/* { dg-final { scan-assembler-times {\mxxlor\M} 2 { target lp64} } } */
+/* { dg-final { scan-assembler-times {\mrldic\M} 1 { target lp64} } } */
+/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 { target lp64} } } */
+/* { dg-final { scan-assembler-times {\mvslo\M} 1 { target lp64} } } */
 
 #include <altivec.h>