diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-11-28 09:16:55 +0000 |
---|---|---|
committer | Christophe Lyon <clyon@gcc.gnu.org> | 2019-11-28 10:16:55 +0100 |
commit | d68f5edfaf04b5efb4b1c3eb2f016f6713357b10 (patch) | |
tree | be2fee69f46e875ba6735ba86802532cf7027477 | |
parent | 79d2e61495d84a2fed4fce6ff7dacfe19a8b99ca (diff) | |
download | gcc-d68f5edfaf04b5efb4b1c3eb2f016f6713357b10.zip gcc-d68f5edfaf04b5efb4b1c3eb2f016f6713357b10.tar.gz gcc-d68f5edfaf04b5efb4b1c3eb2f016f6713357b10.tar.bz2 |
[testsuite][arm] Force use of -mfloat-abi=softfp in asm-flag-4.c
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/asm-flag-4.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d5a06a1..969c8bd 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 diff --git a/gcc/testsuite/gcc.target/arm/asm-flag-4.c b/gcc/testsuite/gcc.target/arm/asm-flag-4.c index 8b3eac1..75378cc 100644 --- a/gcc/testsuite/gcc.target/arm/asm-flag-4.c +++ b/gcc/testsuite/gcc.target/arm/asm-flag-4.c @@ -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) { |