rs6000: Fix the vec-adde* testcases once more
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 14 Feb 2017 20:27:54 +0000 (21:27 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Tue, 14 Feb 2017 20:27:54 +0000 (21:27 +0100)
David found the vec-adde{,c}-int128.c testcases fail on AIX.  Those
tests should only run on targets that have int128.

This also changes the non-int128 testcases to check for the hardware
they require.

gcc/testsuite/
* gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists.
* gcc.target/powerpc/vec-addec-int128.c: Ditto.
* gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a
64-bit default target.
* gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require
a 64-bit default target.

From-SVN: r245453

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

index 8adb64f75ed0e208c2a9ecb9e71c2b91d4693f37..280f9e4c23369c9928de705033dc597229067081 100644 (file)
@@ -1,3 +1,12 @@
+2017-02-14  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * gcc.target/powerpc/vec-adde-int128.c: Only run if int128 exists.
+       * gcc.target/powerpc/vec-addec-int128.c: Ditto.
+       * gcc.target/powerpc/vec-adde.c: Require vsx_hw, don't require a
+       64-bit default target.
+       * gcc.target/powerpc/vec-addec.c: Require p8vector_hw, don't require
+       a 64-bit default target.
+
 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/79481
index 8eed7f58f92688680d098ff66400545e7af56a45..03e89dfd9d7e3051d94829f3309f70a5887513c2 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
+/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-options "-mcpu=power8 -O3" } */
 
index a235a1c987d9fd526accc654f59ad481e733f562..b6f87da5330ffd3949f0d9ec1490e51448e67df9 100644 (file)
@@ -1,5 +1,4 @@
-/* { dg-do run { target { powerpc64*-*-* } } } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-do run { target { powerpc*-*-* && vsx_hw } } } */
 /* { dg-options "-mvsx -O3" } */
 
 /* Test that the vec_adde builtin works as expected.  */
index 4388e0625825956a57e53b41fe9f3ad467ae1f46..3baa82ba95399e9456f51e05506941e3018ac1bf 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-do run { target { powerpc*-*-* && p8vector_hw } } } */
+/* { dg-do run { target { powerpc*-*-* && { p8vector_hw && int128 } } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power8" } } */
 /* { dg-options "-mcpu=power8 -O3" } */
 
index 53bd41f4b91f07bd2105e6f06d1e020680d69681..330ec2371d71aab332382c21fbf900753deefb1a 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" } */