target-supports.exp (check_effective_target_powerpc_spu): Call check_effective_target_powerpc_altivec_ok.

* 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
This commit is contained in:
Joseph Myers 2008-06-05 00:20:01 +01:00 committed by Joseph Myers
parent 28734c3906
commit 6130e0f0cf
6 changed files with 18 additions and 5 deletions

View 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.

View 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" } } */

View 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" } } */

View 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

View 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>. */

View 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.