diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2025-03-11 10:48:54 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2025-03-11 11:02:14 +0000 |
commit | 1b7a05770833eb210783ec8babd0027ec237d191 (patch) | |
tree | 501a09bd8434dad9a9fe13b671fed6700892bdb2 /gcc/builtins.cc | |
parent | 35ba44f5eca80679e2d61fcb0169a182df9bd073 (diff) | |
download | gcc-1b7a05770833eb210783ec8babd0027ec237d191.zip gcc-1b7a05770833eb210783ec8babd0027ec237d191.tar.gz gcc-1b7a05770833eb210783ec8babd0027ec237d191.tar.bz2 |
arm: testsuite: fix arm_neon_h checks with conflicting cpu/arch
GCC will complain if the -mcpu flag specifies a different architecture
to that specified in -march, but if the floating-point ABI is "soft",
then differences in the floating-point architecture features are
ignored.
However, the arm_libc_fp_abi checks whether we change the FP ABI by
adding -mfloat-abi=hard/softfp to override the defaults. If that
fails it won't add anything.
Unfortunately arm_neon_h_ok wasn't correctly checking whether the libc
check had worked and just assumed that it would always add something
to enable FP. That's insufficient and we need to consider this failure.
We simply mark tests as unsupported in this case.
gcc/testsuite/ChangeLog:
* lib/target-supports.exp
(check_effective_target_arm_neon_h_ok_nocache): Return zero if
check_effective_target_arm_libc_fp_abi_ok reports failure.
Diffstat (limited to 'gcc/builtins.cc')
0 files changed, 0 insertions, 0 deletions