* lib/target-supports.exp (check_effective_target_powerpc_spu): New.
* g++.dg/other/spu2vmx-1.C: Use it.
From-SVN: r131385
+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.
/* { dg-do compile { target powerpc*-*-* } } */
-/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-require-effective-target powerpc_spu } */
/* { dg-options "-maltivec" } */
#include <altivec.h>
}
}
+# 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 { } {