target-supports.exp (check_effective_target_powerpc_spu): New.
* lib/target-supports.exp (check_effective_target_powerpc_spu): New. * g++.dg/other/spu2vmx-1.C: Use it. From-SVN: r131385
This commit is contained in:
parent
dcc0807467
commit
6dd116bef6
3 changed files with 12 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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 { } {
|
||||
|
|
Loading…
Add table
Reference in a new issue