testsuite: fix arm/pure-code/no-literal-pool-* tests
authorChristophe Lyon <christophe.lyon@linaro.org>
Wed, 4 Nov 2020 09:33:42 +0000 (09:33 +0000)
committerChristophe Lyon <christophe.lyon@linaro.org>
Wed, 4 Nov 2020 09:39:14 +0000 (09:39 +0000)
commit14ddf41acb96f28815b9fffe9a408be255e1ca2c
tree7bd28ebf937952aeac55ba6041b00f7f0b54a5bd
parent619039de36a78164c67a2c62a425a444340d4a06
testsuite: fix arm/pure-code/no-literal-pool-* tests

Add -mfloat-abi=soft and skip the tests if -mfloat-abi=hard is
supplied.

This avoids failures when testing with overridden flags such as
mthumb/-mcpu=cortex-m4/-mfloat-abi=hard

2020-11-04  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
* gcc.target/arm/pure-code/no-literal-pool-m0.c: Add dg-skip-if
and -mfloat-abi=soft option.
* gcc.target/arm/pure-code/no-literal-pool-m23.c: Likewise.
gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m0.c
gcc/testsuite/gcc.target/arm/pure-code/no-literal-pool-m23.c