rs6000: testsuite: Fix vec-adde[c]-int128.c
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 13 Feb 2017 16:51:25 +0000 (17:51 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 13 Feb 2017 16:51:25 +0000 (17:51 +0100)
These are a runtime testcases so they should test p8vector_hw instead of
powerpc_p8vector_ok, or they will fail with an illegal instruction on
older processors.

Also they run on any PowerPC, not with just those compilers that were
configured to default to 64-bit targets.

gcc/testsuite/
* gcc.target/powerpc/vec-adde-int128.c: Use p8vector_hw instead of
powerpc_p8vector_ok.
* gcc.target/powerpc/vec-addec-int128.c: Ditto.

From-SVN: r245395

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vec-adde-int128.c
gcc/testsuite/gcc.target/powerpc/vec-addec-int128.c

index b5e225e2acf489dbe0c8faef69deb22523c180e8..2037bfdcdf82328b847c1fc2e6d1b441021f42c1 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * gcc.target/powerpc/vec-adde-int128.c: Use p8vector_hw instead of
+       powerpc_p8vector_ok.
+       * gcc.target/powerpc/vec-addec-int128.c: Ditto.
+
 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
 
        PR target/79449
index 4f951a993db5003dac8de789146e5f9fc65e35b2..8eed7f58f92688680d098ff66400545e7af56a45 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do run { target { powerpc64*-*-* } } } */
-/* { dg-require-effective-target powerpc_p8vector_ok } */
+/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-options "-mcpu=power8 -O3" } */
 
index f95143a7e0afc18d10e56b8678b9464223230e12..4388e0625825956a57e53b41fe9f3ad467ae1f46 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do run { target { powerpc64*-*-* } } } */
-/* { dg-require-effective-target powerpc_p8vector_ok } */
+/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-options "-mcpu=power8 -O3" } */