aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelvin Nilsen <kelvin@gcc.gnu.org>2016-11-15 15:22:42 +0000
committerKelvin Nilsen <kelvin@gcc.gnu.org>2016-11-15 15:22:42 +0000
commite0b6fc45b5c5ba75bf3f6917da6eb905f0e1c57a (patch)
tree6c77614acdd8ff546864eb308fa688daec6c5988
parent6fec85824e326dc615a121838b94d84c5c351cfb (diff)
improve pr78056-5.c
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/ibm/bz78056-enhance@242427 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/gcc.target/powerpc/pr78056-5.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/gcc.target/powerpc/pr78056-5.c b/gcc/testsuite/gcc.target/powerpc/pr78056-5.c
index 727ee1d19ba..0fca450ff53 100644
--- a/gcc/testsuite/gcc.target/powerpc/pr78056-5.c
+++ b/gcc/testsuite/gcc.target/powerpc/pr78056-5.c
@@ -1,11 +1,15 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power6" } } */
+/* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power5" } } */
/* powerpc_vsx_ok represents power7 */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-skip-if "" { powerpc*-*-aix* } } */
-/* { dg-options "-mcpu=power6" } */
+/* There is an "incompatibility" between power6 flags and power7 which
+ is not resolved with the __attribute__ directive below, so we'll
+ test the __attribute__ directive using a -mcpu=power5 command
+ line. */
+/* { dg-options "-mcpu=power5" } */
-/* Though the command line specifies power7 target, this function is
+/* Though the command line specifies power5 target, this function is
to support power7. */
__attribute__((target("cpu=power7")))
int