[testsuite][ARM target attributes] Fix effective_target tests.
commit15d163021255822483fb16385469685e7081af7a
authorclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Dec 2015 11:17:18 +0000 (8 11:17 +0000)
committerclyon <clyon@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Dec 2015 11:17:18 +0000 (8 11:17 +0000)
tree5b4f44ef46ba9dfc6eee92cdcfec143a72b1e183
parenta2b311518c288a653cbab4b0818eac9ef9dd4e88
[testsuite][ARM target attributes] Fix effective_target tests.

2015-12-08  Christophe Lyon  <christophe.lyon@linaro.org>

* lib/target-supports.exp
(check_effective_target_arm_vfp_ok_nocache): New.
(check_effective_target_arm_vfp_ok): Call the new
check_effective_target_arm_vfp_ok_nocache function.
(check_effective_target_arm_fp_ok_nocache): New.
(check_effective_target_arm_fp_ok): New.
(add_options_for_arm_fp): New.
(check_effective_target_arm_crypto_ok_nocache): Require
target_arm_v8_neon_ok instead of arm32.
(check_effective_target_arm_crypto_pragma_ok_nocache): New.
(check_effective_target_arm_crypto_pragma_ok): New.
(add_options_for_arm_vfp): New.
* gcc.target/arm/attr-crypto.c: Use arm_crypto_pragma_ok effective
target. Do not force -mfloat-abi=softfp, use arm_vfp effective
target instead.
* gcc.target/arm/attr-neon-builtin-fail.c: Do not force
-mfloat-abi=softfp, use arm_fp effective target instead.
* gcc.target/arm/attr-neon-fp16.c: Likewise. Remove arm_neon_ok
dependency.
* gcc.target/arm/attr-neon2.c: Do not force -mfloat-abi=softfp,
use arm_vfp effective target instead.
* gcc.target/arm/attr-neon3.c: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231403 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/attr-crypto.c
gcc/testsuite/gcc.target/arm/attr-neon-builtin-fail.c
gcc/testsuite/gcc.target/arm/attr-neon-fp16.c
gcc/testsuite/gcc.target/arm/attr-neon2.c
gcc/testsuite/gcc.target/arm/attr-neon3.c
gcc/testsuite/lib/target-supports.exp