diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2017-11-10 12:54:59 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2017-11-10 13:54:59 +0100 |
commit | 1ea8c961c82baa476503a04a81c73519971e0380 (patch) | |
tree | 324fcc8cb285d3df2005e342aab901e546c7e9c7 /gcc | |
parent | df3c2945360a0c07579929f20b080ec5f903a0ad (diff) | |
download | gcc-1ea8c961c82baa476503a04a81c73519971e0380.zip gcc-1ea8c961c82baa476503a04a81c73519971e0380.tar.gz gcc-1ea8c961c82baa476503a04a81c73519971e0380.tar.bz2 |
[ARM,testsuite] Skip copysign_softfloat_1.c on hard-float targets
gcc/testsuite/
2017-11-10 Christophe Lyon <christophe.lyon@linaro.org>
* lib/target-supports.exp (check_effective_target_arm_soft_ok):
New function.
* gcc.target/arm/copysign_softfloat_1.c: Require arm_soft_ok
effective target.
From-SVN: r254626
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 13 |
3 files changed, 21 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 620044a..dc6799a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2017-11-10 Christophe Lyon <christophe.lyon@linaro.org> + + * lib/target-supports.exp (check_effective_target_arm_soft_ok): + New function. + * gcc.target/arm/copysign_softfloat_1.c: Require arm_soft_ok + effective target. + 2017-11-10 Paul Thomas <pault@gcc.gnu.org> PR fortran/82934 diff --git a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c index 1260a6f..d79d014 100644 --- a/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c +++ b/gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c @@ -1,5 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target arm_thumb2_ok } */ +/* { dg-require-effective-target arm_soft_ok } */ /* { dg-skip-if "skip override" { *-*-* } { "-mfloat-abi=softfp" "-mfloat-abi=hard" } { "" } } */ /* { dg-options "-O2 -mfloat-abi=soft --save-temps" } */ extern void abort (void); diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 54e2036..964bce9 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -3414,6 +3414,19 @@ proc check_effective_target_arm_vect_no_misalign { } { } +# Return 1 if this is an ARM target supporting -mfloat-abi=soft. Some +# multilibs may be incompatible with this option. + +proc check_effective_target_arm_soft_ok { } { + if { [check_effective_target_arm32] } { + return [check_no_compiler_messages arm_soft_ok executable { + int main() { return 0;} + } "-mfloat-abi=soft"] + } else { + return 0 + } +} + # Return 1 if this is an ARM target supporting -mfpu=vfp # -mfloat-abi=softfp. Some multilibs may be incompatible with these # options. |