[testsuite][ARM target attributes] Fix effective_target tests.
authorChristophe Lyon <christophe.lyon@linaro.org>
Tue, 8 Dec 2015 11:17:18 +0000 (11:17 +0000)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 8 Dec 2015 11:17:18 +0000 (12:17 +0100)
commitf9184ba0453e132c5f21b1f2f106987dae3c7065
tree5b4f44ef46ba9dfc6eee92cdcfec143a72b1e183
parent409c286f84dbb7c50ee411df67339cc63796369c
[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.

From-SVN: r231403
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