]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR51534] [arm] split out pr51534 test for softfp
authorAlexandre Oliva <oliva@adacore.com>
Fri, 3 Mar 2023 18:59:21 +0000 (15:59 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 3 Mar 2023 18:59:21 +0000 (15:59 -0300)
commitcc9cc5a9a5fb0c16532a16b87fbd155037a7ed89
tree3808bc8bf13d82fdd400b4983d680b0e4719ef51
parentcfa118fc089e38a94ec60ccf5b667aea015e5f60
[PR51534] [arm] split out pr51534 test for softfp

The test uses arm_hard_ok and arm_softfp_ok as if they were mutually
exclusive, but they test whether the corresponding -mfloat-abi= flag
is usable, not whether it is in effect, so it is possible for both to
pass, and then the test comes out with incorrect expectations
whichever the default float-abi is.

Separate the test into hard and softfp variants, and extend the softfp
variant to accept both ARM and Thumb opcodes; it unwarrantedly assumed
the latter.

for  gcc/testsuite/ChangeLog

PR target/51534
* gcc.target/arm/pr51534.c: Split softfp variant into...
* gcc.target/arm/pr51534s.c: ... this, and support ARM too.
gcc/testsuite/gcc.target/arm/pr51534.c
gcc/testsuite/gcc.target/arm/pr51534s.c [new file with mode: 0644]