diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2019-11-28 09:16:55 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2019-11-28 09:16:55 +0000 |
commit | a75b9f83b7db94ee93e427fb856c1af05fb2d62d (patch) | |
tree | be2fee69f46e875ba6735ba86802532cf7027477 | |
parent | d64966317e1aac3539c57eb0f041515e46dcbd40 (diff) |
[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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@278804 138bc75d-0d04-0410-961f-82ee72b054a4
-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 d5a06a161c4..969c8bda369 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 8b3eac1320b..75378cc89b0 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) { |