+2008-06-04 Joseph Myers <joseph@codesourcery.com>
+
+ * lib/target-supports.exp (check_effective_target_powerpc_spu):
+ Call check_effective_target_powerpc_altivec_ok.
+ * gcc.target/powerpc/dfp-dd.c, gcc.target/powerpc/dfp-td.c,
+ gcc.target/powerpc/ppc32-abi-dfp-1.c,
+ gcc.target/powerpc/ppu-intrinsics.c: Require powerpc_fprs.
+
2008-06-04 Xinliang David Li <davidxl@google.com>
+
* gcc.dg/cdce1.c: New test.
* gcc.dg/cdce2.c: Ditto.
* g++.dg/cdce3.C: Ditto.
/* Test generation of DFP instructions for POWER6. */
/* Origin: Janis Johnson <janis187@us.ibm.com> */
-/* { dg-do compile { target powerpc*-*-linux* } } */
+/* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
/* { dg-options "-std=gnu99 -mcpu=power6" } */
/* { dg-final { scan-assembler "dadd" } } */
/* Test generation of DFP instructions for POWER6. */
/* Origin: Janis Johnson <janis187@us.ibm.com> */
-/* { dg-do compile { target powerpc*-*-linux* } } */
+/* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
/* { dg-options "-std=gnu99 -mcpu=power6" } */
/* { dg-final { scan-assembler "daddq" } } */
-/* { dg-do run { target { powerpc*-*-* && { ilp32 && dfprt } } } } */
+/* { dg-do run { target { powerpc_fprs && { ilp32 && dfprt } } } } */
/* { dg-options "-std=gnu99 -O2 -fno-strict-aliasing" } */
/* Testcase to check for ABI compliance of parameter passing
-/* { dg-do link { target *-*-linux* } } */
+/* { dg-do link { target { *-*-linux* && powerpc_fprs } } } */
/* { dg-options "-W -Wall -mcpu=cell" } */
/* Test some PPU intrinsics from <ppu_intrinsics.h>. */
# Return 1 if this is a PowerPC target that supports SPU.
proc check_effective_target_powerpc_spu { } {
- return [istarget powerpc*-*-linux*]
+ if [istarget powerpc*-*-linux*] {
+ return [check_effective_target_powerpc_altivec_ok]
+ } else {
+ return 0
+ }
}
# Return 1 if this is a PowerPC target with SPE enabled.