]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[ARM,testsuite] Skip copysign_softfloat_1.c on hard-float targets
authorChristophe Lyon <christophe.lyon@linaro.org>
Fri, 10 Nov 2017 12:54:59 +0000 (12:54 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Fri, 10 Nov 2017 12:54:59 +0000 (13:54 +0100)
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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c
gcc/testsuite/lib/target-supports.exp

index 620044a92a17b7bb72d3d99f094abebfba14b140..dc6799a476cc5844f90d1eab636f7970b873db54 100644 (file)
@@ -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
index 1260a6f8eebe77c4033b70cfd28b71bffb88896b..d79d014e27cf445cd741504c6b256a3a51ace6cd 100644 (file)
@@ -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);
index 54e203681bab11dacbe2df6f448d3f8b3629c2e8..964bce94006d8e821d1528ea9c1170d14fac5b5c 100644 (file)
@@ -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.