target-supports.exp (check_effective_target_powerpc_spu): Call check_effective_target...
authorJoseph Myers <joseph@codesourcery.com>
Wed, 4 Jun 2008 23:20:01 +0000 (00:20 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Wed, 4 Jun 2008 23:20:01 +0000 (00:20 +0100)
* 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.

From-SVN: r136378

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/dfp-dd.c
gcc/testsuite/gcc.target/powerpc/dfp-td.c
gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c
gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c
gcc/testsuite/lib/target-supports.exp

index 5ada62bc7c44eae6508e9ad8b360b455e43e2133..d8c177dcc57e6bdef573e7d9a8a47e8c4e09b022 100644 (file)
@@ -1,4 +1,13 @@
+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.
index b329318754454c6f0123b6a08f01c990f7e9eefc..85da9070531963ff1de2a0dbad5e081a7ad43baf 100644 (file)
@@ -1,6 +1,6 @@
 /* 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" } } */
index f66bbd86c8721d37a585862b0aaafba67047fc57..752ba88743f23ba3ba6fa2a078cf56de8018078b 100644 (file)
@@ -1,6 +1,6 @@
 /* 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" } } */
index 82dce4e3fd6308da0669c1f6c4b19f8463e9792f..1b836d7279540dea121b6b9e0db7b8026e137459 100644 (file)
@@ -1,4 +1,4 @@
-/* { 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
index 53b6c709ec243bba840449a978190996f7dec1f3..bfdf74266009f25ac544caa03784b06adcda8ecf 100644 (file)
@@ -1,4 +1,4 @@
-/* { 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>.  */
 
index 3a8a08fe1e34232f7c7268df331fb9fbc126e2b6..d158ef0cfc184a3a304baf56777d44c83b20650c 100644 (file)
@@ -1292,7 +1292,11 @@ 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*]
+    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.