vadsdu-0.c: Replace dg-require-effective-target directive to allow test to run on...
authorKelvin Nilsen <kelvin@gcc.gnu.org>
Tue, 21 Jun 2016 14:09:12 +0000 (14:09 +0000)
committerKelvin Nilsen <kelvin@gcc.gnu.org>
Tue, 21 Jun 2016 14:09:12 +0000 (14:09 +0000)
gcc/testsuite/ChangeLog:

2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>

* gcc.target/powerpc/vadsdu-0.c: Replace
dg-require-effective-target directive to allow test to run on more
platforms, and add dg-skip-if directive to disable test on aix
platforms because of known incompatibilities.
* gcc.target/powerpc/vadsdu-1.c: Likewise.
* gcc.target/powerpc/vadsdu-2.c: Likewise.
* gcc.target/powerpc/vadsdu-3.c: Likewise.
* gcc.target/powerpc/vadsdu-4.c: Likewise.
* gcc.target/powerpc/vadsdu-5.c: Likewise.
* gcc.target/powerpc/vadsdub-1.c: Likewise.
* gcc.target/powerpc/vadsdub-2.c: Replace
dg-require-effective-target directive to allow test to run on more
platforms, and add dg-skip-if directive to disable test on aix
platforms because of known incompatibilities.
(doAbsoluteDifferenceUnsigned): Replace __builtin_vec_vadub call
with vec_absdb call to differentiate this test from vadsdub-1.c.
* gcc.target/powerpc/vadsduh-1.c: Replace
dg-require-effective-target directive to allow test to run on more
platforms, and add dg-skip-if directive to disable test on aix
platforms because of known incompatibilities.
* gcc.target/powerpc/vadsduh-2.c: Likewise.
* gcc.target/powerpc/vadsduw-1.c: Likewise.
* gcc.target/powerpc/vadsduw-2.c: Likewise.

From-SVN: r237646

13 files changed:
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/vadsdu-0.c
gcc/testsuite/gcc.target/powerpc/vadsdu-1.c
gcc/testsuite/gcc.target/powerpc/vadsdu-2.c
gcc/testsuite/gcc.target/powerpc/vadsdu-3.c
gcc/testsuite/gcc.target/powerpc/vadsdu-4.c
gcc/testsuite/gcc.target/powerpc/vadsdu-5.c
gcc/testsuite/gcc.target/powerpc/vadsdub-1.c
gcc/testsuite/gcc.target/powerpc/vadsdub-2.c
gcc/testsuite/gcc.target/powerpc/vadsduh-1.c
gcc/testsuite/gcc.target/powerpc/vadsduh-2.c
gcc/testsuite/gcc.target/powerpc/vadsduw-1.c
gcc/testsuite/gcc.target/powerpc/vadsduw-2.c

index 0f6fe9467324c1ba54b00f8de05e0ffef9f6d646..0131e5317d6c196c4748cf006ef9576ed60a65af 100644 (file)
@@ -1,3 +1,29 @@
+2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
+
+       * gcc.target/powerpc/vadsdu-0.c: Replace
+       dg-require-effective-target directive to allow test to run on more
+       platforms, and add dg-skip-if directive to disable test on aix
+       platforms because of known incompatibilities.
+       * gcc.target/powerpc/vadsdu-1.c: Likewise.
+       * gcc.target/powerpc/vadsdu-2.c: Likewise.
+       * gcc.target/powerpc/vadsdu-3.c: Likewise.
+       * gcc.target/powerpc/vadsdu-4.c: Likewise.
+       * gcc.target/powerpc/vadsdu-5.c: Likewise.
+       * gcc.target/powerpc/vadsdub-1.c: Likewise.
+       * gcc.target/powerpc/vadsdub-2.c: Replace
+       dg-require-effective-target directive to allow test to run on more
+       platforms, and add dg-skip-if directive to disable test on aix
+       platforms because of known incompatibilities.
+       (doAbsoluteDifferenceUnsigned): Replace __builtin_vec_vadub call
+       with vec_absdb call to differentiate this test from vadsdub-1.c.
+       * gcc.target/powerpc/vadsduh-1.c: Replace
+       dg-require-effective-target directive to allow test to run on more
+       platforms, and add dg-skip-if directive to disable test on aix
+       platforms because of known incompatibilities.
+       * gcc.target/powerpc/vadsduh-2.c: Likewise.
+       * gcc.target/powerpc/vadsduw-1.c: Likewise.
+       * gcc.target/powerpc/vadsduw-2.c: Likewise.
+
 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/71588
index aa1d61de7411549b9f77fe958222d2baa9ad2028..4d66df8ffdfae5e7a8d9066a8b9c277a651477ab 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index cf10283b199ce7246174aa9401f11242383f9374..28c85655066c27e4934e92d3fea9c00b22af8d79 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index 27ea2b3255932f2fb7c279c432dabbe384f8cb88..726c90478c0dea8337b3377cf586744bb5f3258c 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index be0df32e2207a54b6efdab54c38b2011faf20b5d..d3618db7184ebf6b28d939e1c826072ab507fa60 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index ffbd570c711e7980e6179858f0e0bd05236cb48a..e5744d1399465a66bd57c243f53f0b92412991e8 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index 20aa25efe21617223f31f433d2c9f939853483cd..5dc14a956f871c5075ec168677a4aedf6c38cb6e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index de1b9eef1cf5a864193d3f38ebbfa34d63f76a51..649811ae0cedc154595149b9ddd2b044bca85a39 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index de1b9eef1cf5a864193d3f38ebbfa34d63f76a51..142c3d39af5dd58b373a1d3b4ba5041d50643002 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
@@ -16,7 +17,7 @@ doAbsoluteDifferenceUnsigned (__vector unsigned char *p,
   source_1 = *p;
   source_2 = *q;
 
-  uc_result = __builtin_vec_vadub (source_1, source_2);
+  uc_result = vec_absdb (source_1, source_2);
   return uc_result;
 }
 
index c208790d8110f829e2089e146919dff27a1af213..6d933b9aa789a66caf7870608dc358586331901a 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index 5fa2157e18e9c5fbf99ea2978fe5dd77fc2b81ef..bf28b713b2c711455f1d57980c3a8911a307cd2e 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index 6cb66ba4c9f8918e4d880360c34c8b485e0897c7..5188d68e143e7cb07d9624af5d87eb9eb706143b 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */
index a614cf6d4ae6427255419c548b435b09f984032d..bf93d96d9676927c2b17a37ea955d800da0e2c53 100644 (file)
@@ -1,6 +1,7 @@
 /* { dg-do compile { target { powerpc*-*-* } } } */
 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power9" } } */
-/* { dg-require-effective-target p9vector_hw } */
+/* { dg-require-effective-target powerpc_p9vector_ok } */
+/* { dg-skip-if "" { powerpc*-*-aix* } } */
 /* { dg-options "-mcpu=power9" } */
 
 /* This test should succeed on both 32- and 64-bit configurations.  */