Fix up dg options to resolve make check failures Bill Seurer found
authorSteven Munroe <munroesj@gcc.gnu.org>
Thu, 1 Jun 2017 00:15:51 +0000 (00:15 +0000)
committerSteven Munroe <munroesj@gcc.gnu.org>
Thu, 1 Jun 2017 00:15:51 +0000 (00:15 +0000)
when compiling --with-cpu=power6.

2017-05-31  Steven Munroe  <munroesj@gcc.gnu.org>

* gcc.target/powerpc/bmi2-pdep32-1.c: Add -mcpu=power7 to
        dg-options.  Change dg-require-effective-target powerpc_vsx_ok
        to vsx_hw.  Add dg-skip-if directive to disable this test if
-mcpu overridden.
* gcc.target/powerpc/bmi2-pdep64-1.c: Likewise.
* gcc.target/powerpc/bmi2-pext32-1.c: Likewise.
* gcc.target/powerpc/bmi2-pext64-1.c: Likewise.
* gcc.target/powerpc/bmi2-pext64-1a.c: Add -mcpu=power7
to dg-option.  Add dg-skip-if directive to disable this test
for darwin.  Add dg-skip-if directive to disable this test if
-mcpu overridden.

From-SVN: r248766

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/bmi2-pdep32-1.c
gcc/testsuite/gcc.target/powerpc/bmi2-pdep64-1.c
gcc/testsuite/gcc.target/powerpc/bmi2-pext32-1.c
gcc/testsuite/gcc.target/powerpc/bmi2-pext64-1.c
gcc/testsuite/gcc.target/powerpc/bmi2-pext64-1a.c

index 97b0d4c2c02010c6dbc333bc7156918af76e5c26..8af1ac5a3f2279c2c9987fbf3868a8320fc1bdc0 100644 (file)
@@ -1,3 +1,17 @@
+2017-05-31  Steven Munroe  <munroesj@gcc.gnu.org>
+
+       * gcc.target/powerpc/bmi2-pdep32-1.c: Add -mcpu=power7 to
+        dg-options.  Change dg-require-effective-target powerpc_vsx_ok
+        to vsx_hw.  Add dg-skip-if directive to disable this test if
+       -mcpu overridden.
+       * gcc.target/powerpc/bmi2-pdep64-1.c: Likewise.
+       * gcc.target/powerpc/bmi2-pext32-1.c: Likewise.
+       * gcc.target/powerpc/bmi2-pext64-1.c: Likewise.
+       * gcc.target/powerpc/bmi2-pext64-1a.c: Add -mcpu=power7
+       to dg-option.  Add dg-skip-if directive to disable this test
+       for darwin.  Add dg-skip-if directive to disable this test if
+       -mcpu overridden.
+
 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
 
        * gcc.target/i386/avx512f-vmaxsd-1.c (_mm_mask_max_sd)
index 0738092dd37fe25a5a8f0c3261393b7655b4daf6..12cf92eec2c8b5583f9d2858b2192d3f93bc384d 100644 (file)
@@ -1,7 +1,8 @@
 /* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -mcpu=power7" } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target vsx_hw } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
 
 #define NO_WARN_X86_INTRINSICS 1
 #include <x86intrin.h>
index 29dcfc517b56cff130b54420b710c9a563f1f8fe..01e1fdaf538814fc041358e75be33d52e85f6da3 100644 (file)
@@ -1,7 +1,8 @@
 /* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -mcpu=power7" } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target vsx_hw } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
 
 #define NO_WARN_X86_INTRINSICS 1
 #include <x86intrin.h>
index 9a8ad28c60d2ea8dc2dda1507ed9f408b030f77b..9450ef56aedb4050077d15505d692c23207b45c1 100644 (file)
@@ -1,7 +1,8 @@
 /* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -mcpu=power7" } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target vsx_hw } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
 
 #define NO_WARN_X86_INTRINSICS 1
 #include <x86intrin.h>
index 5da1213bf25fdb999b31a455867831735e87fcda..b76ae81b5bc303e6885bf7246dfe8bfe051ee38d 100644 (file)
@@ -1,7 +1,8 @@
 /* { dg-do run } */
-/* { dg-options "-O3" } */
+/* { dg-options "-O3 -mcpu=power7" } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-require-effective-target vsx_hw } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
 
 #define NO_WARN_X86_INTRINSICS 1
 #include <x86intrin.h>
index 047352fdadf87a67a7107e051bab50195d8aa844..02de1f944a00dcb36e8ab9eb391bdb6bc24e34f8 100644 (file)
@@ -1,7 +1,9 @@
 /* { dg-do compile } */
-/* { dg-options "-O3" } */
+/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
+/* { dg-options "-O3 -mcpu=power7" } */
 /* { dg-require-effective-target lp64 } */
 /* { dg-require-effective-target powerpc_vsx_ok } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
 
 #define NO_WARN_X86_INTRINSICS 1
 #include <x86intrin.h>