[arm] Make gcc.target/arm/copysign_softfloat_1.c more robust
commit33a48ee34310c70684bfff0b8f37ff03431ad6c7
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2018 10:50:20 +0000 (22 10:50 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 22 Jan 2018 10:50:20 +0000 (22 10:50 +0000)
tree1013b52005ef3db9d767b709aa0fcf9409c0db5f
parent3e9b9e793e7b26f8032eb2e0f84b914bdd1b4802
[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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256940 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/sourcebuild.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/copysign_softfloat_1.c
gcc/testsuite/lib/target-supports.exp