[testsuite][arm] Force use of -mfloat-abi=softfp in asm-flag-4.c
authorChristophe Lyon <christophe.lyon@linaro.org>
Thu, 28 Nov 2019 09:16:55 +0000 (09:16 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Thu, 28 Nov 2019 09:16:55 +0000 (10:16 +0100)
The asm-flag-4.c test forces the generation of Thumb code for armv4t,
which is not supported when using the 'hard' FP ABI. This patch
ensures the test uses -mfloat-abi=softfp safely, to avoid irrelevant
failures.

2019-11-28  Christophe Lyon  <christophe.lyon@linaro.org>

* gcc.target/arm/asm-flag-4.c: Use -mfloat-abi=softfp.

From-SVN: r278804

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/asm-flag-4.c

index d5a06a161c41dde32faa0a2f873862067aabeb3a..969c8bda369198c7307bd3fe469ec809e57d15cf 100644 (file)
@@ -1,3 +1,7 @@
+2019-11-28  Christophe Lyon  <christophe.lyon@linaro.org>
+
+       * gcc.target/arm/asm-flag-4.c: Use -mfloat-abi=softfp.
+
 2019-11-28  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/92691
index 8b3eac1320bbe848751d16c67e264ac00544bba2..75378cc89b09261bb67fc0f57670e80b9ec945d3 100644 (file)
@@ -1,6 +1,8 @@
 /* Test that we do not ice in thumb1 mode */
 /* { dg-do compile } */
-/* { dg-options "-march=armv4t" } */
+/* { dg-require-effective-target arm_arch_v4t_thumb_ok } */
+/* { dg-skip-if "do not override -mfloat-abi" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=softfp" } } */
+/* { dg-options "-march=armv4t -mfloat-abi=softfp" } */
 
 void __attribute__((target("arm"))) f(char *out)
 {