target-supports.exp (check_effective_target_powerpc_spu): New.
authorJanis Johnson <janis187@us.ibm.com>
Mon, 7 Jan 2008 21:05:03 +0000 (21:05 +0000)
committerJanis Johnson <janis@gcc.gnu.org>
Mon, 7 Jan 2008 21:05:03 +0000 (21:05 +0000)
* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
* g++.dg/other/spu2vmx-1.C: Use it.

From-SVN: r131385

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/spu2vmx-1.C
gcc/testsuite/lib/target-supports.exp

index d6d359f4d8314f5f73eee7624b801a312f0ec0f9..b559fc8630bab8980559a46473181739b8a2a059 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-07  Janis Johnson  <janis187@us.ibm.com>
+
+       * lib/target-supports.exp (check_effective_target_powerpc_spu): New.
+       * g++.dg/other/spu2vmx-1.C: Use it.
+
 2008-01-07  Jack Howarth  <howarth@bromo.med.uc.edu>
 
        * gcc.dg/out-of-bounds-1.c: Don't use -mstrict-align for Darwin.
index becd1dcabeb4bfb7dafdb3bbb30a85d16939705b..d9c8faf94592d00b2b2100edc4fb4b0b208335e7 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_spu } */
 /* { dg-options "-maltivec" } */
 
 #include <altivec.h>
index aaa3b5beb1d991421a91cf33704acec41255cafb..a723dc635d5aa5047d8231264fdfbea20492d936 100644 (file)
@@ -1197,6 +1197,12 @@ proc check_effective_target_powerpc_altivec_ok { } {
     }
 }
 
+# Return 1 if this is a PowerPC target that supports SPU.
+
+proc check_effective_target_powerpc_spu { } {
+    return [istarget powerpc*-*-linux*]
+}
+
 # Return 1 if this is a PowerPC target with SPE enabled.
 
 proc check_effective_target_powerpc_spe { } {