From 6130e0f0cfa316a72ff13692b0345b41eead34c9 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 5 Jun 2008 00:20:01 +0100 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 9 +++++++++ gcc/testsuite/gcc.target/powerpc/dfp-dd.c | 2 +- gcc/testsuite/gcc.target/powerpc/dfp-td.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c | 2 +- gcc/testsuite/lib/target-supports.exp | 6 +++++- 6 files changed, 18 insertions(+), 5 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5ada62bc7c4..d8c177dcc57 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,4 +1,13 @@ +2008-06-04 Joseph Myers + + * 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 + * gcc.dg/cdce1.c: New test. * gcc.dg/cdce2.c: Ditto. * g++.dg/cdce3.C: Ditto. diff --git a/gcc/testsuite/gcc.target/powerpc/dfp-dd.c b/gcc/testsuite/gcc.target/powerpc/dfp-dd.c index b3293187544..85da9070531 100644 --- a/gcc/testsuite/gcc.target/powerpc/dfp-dd.c +++ b/gcc/testsuite/gcc.target/powerpc/dfp-dd.c @@ -1,6 +1,6 @@ /* Test generation of DFP instructions for POWER6. */ /* Origin: Janis Johnson */ -/* { 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" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/dfp-td.c b/gcc/testsuite/gcc.target/powerpc/dfp-td.c index f66bbd86c87..752ba88743f 100644 --- a/gcc/testsuite/gcc.target/powerpc/dfp-td.c +++ b/gcc/testsuite/gcc.target/powerpc/dfp-td.c @@ -1,6 +1,6 @@ /* Test generation of DFP instructions for POWER6. */ /* Origin: Janis Johnson */ -/* { 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" } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c b/gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c index 82dce4e3fd6..1b836d72795 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c +++ b/gcc/testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c @@ -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 diff --git a/gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c b/gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c index 53b6c709ec2..bfdf7426600 100644 --- a/gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c +++ b/gcc/testsuite/gcc.target/powerpc/ppu-intrinsics.c @@ -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 . */ diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 3a8a08fe1e3..d158ef0cfc1 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -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. -- 2.30.2