[ARM] Fix size-optimization-ieee testcase failure
authorThomas Preud'homme <thomas.preudhomme@linaro.org>
Fri, 21 Dec 2018 11:49:04 +0000 (11:49 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Fri, 21 Dec 2018 11:49:04 +0000 (11:49 +0000)
On some version of dejagnu, options in RUNTESTFLAGS are appended to the
command-line and thus any -mfloat-abi=softfp or -mfloat-abi=hard in
there overwrite the -mfloat-abi=soft in the dg-options for
size-optimization-ieee-* tests. Test is still run though because
arm_soft_ok returns true if -mfloat-abi=soft is accepted, even if the
file is not compiled for softfloat due to a later -mfloat-abi on the
command line.

This patch adds a dg-skip-if to those tests to ensure they are not run
in softfp or hard mode.

2018-12-21  Thomas Preud'homme  <thomas.preudhomme@linaro.org>

    gcc/testsuite/
    * gcc.target/arm/size-optimization-ieee-1.c: Skip if passing
    -mfloat-abi=softfp or -mfloat-abi=hard.
    * gcc.target/arm/size-optimization-ieee-2.c: Likewise.
    * gcc.target/arm/size-optimization-ieee-3.c: Likewise.

From-SVN: r267323

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/size-optimization-ieee-1.c
gcc/testsuite/gcc.target/arm/size-optimization-ieee-2.c
gcc/testsuite/gcc.target/arm/size-optimization-ieee-3.c

index dcac93b..1569e7a 100644 (file)
@@ -1,3 +1,10 @@
+2018-12-21  Thomas Preud'homme  <thomas.preudhomme@linaro.org>
+
+       * gcc.target/arm/size-optimization-ieee-1.c: Skip if passing
+       -mfloat-abi=softfp or -mfloat-abi=hard.
+       * gcc.target/arm/size-optimization-ieee-2.c: Likewise.
+       * gcc.target/arm/size-optimization-ieee-3.c: Likewise.
+
 2018-12-21  Jakub Jelinek  <jakub@redhat.com>
 
        PR target/88547
index 34090f2..61475eb 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link { target arm_soft_ok } } */
+/* { dg-skip-if "Feature is -mfloat-abi=soft only" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */
 /* { dg-options "-mfloat-abi=soft" } */
 
 int
index 7533789..b469927 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link { target arm_soft_ok } } */
+/* { dg-skip-if "Feature is -mfloat-abi=soft only" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */
 /* { dg-options "-mfloat-abi=soft" } */
 
 int
index 63c92b3..34b1ebe 100644 (file)
@@ -1,4 +1,5 @@
 /* { dg-do link { target arm_soft_ok } } */
+/* { dg-skip-if "Feature is -mfloat-abi=soft only" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */
 /* { dg-options "-mfloat-abi=soft" } */
 
 int