[arm] Make gcc.target/arm/copysign_softfloat_1.c more robust
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 22 Jan 2018 10:50:20 +0000 (10:50 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Mon, 22 Jan 2018 10:50:20 +0000 (10:50 +0000)
commitdececdaa772723e625f7b1617ad8162982012ba9
tree1013b52005ef3db9d767b709aa0fcf9409c0db5f
parent6a79ea14b2774c2d8a51b978d3b3e7a67ae1067b
[arm] Make gcc.target/arm/copysign_softfloat_1.c more robust

This test has needlessly restrictive requirements. It tries to force a soft-float target and tries to run.
This makes it unsupportable for any non-soft-float variant.
In fact, the test can be a run-time test for any target, and only the scan-assembler tests are specific to
-mfloat-abi=soft. So this patch makes the test always runnable and makes the scan-assembler checks predicable
on the the new arm_sotftfloat effective target check.

* doc/sourcebuild.texi (arm_softfloat): Document.

* lib/target-supports.exp (check_effective_target_arm_softfloat):
New procedure.
* gcc.target/arm/copysign_softfloat_1.c: Allow running everywhere.
Adjust scan-assembler checks for soft-float.

From-SVN: r256940
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c
gcc/testsuite/lib/target-supports.exp