diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2023-05-30 13:45:13 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2023-05-30 15:41:32 +0000 |
commit | b49bcb86851557d1a32fce1b867be786cecd6f94 (patch) | |
tree | 2fd2f7e7bdbb9d346b3dc249d2001dcf5d6e8cda /gcc/tree-vectorizer.h | |
parent | 668d43502f465d48adbc1fe2956b979f36657e5f (diff) | |
download | gcc-b49bcb86851557d1a32fce1b867be786cecd6f94.zip gcc-b49bcb86851557d1a32fce1b867be786cecd6f94.tar.gz gcc-b49bcb86851557d1a32fce1b867be786cecd6f94.tar.bz2 |
Fix ACLE data-intrinsics testcases
data-intrinsics-assembly.c forces -march=armv6 using dg-add-options
arm_arch_v6, which implicitly adds -mfloat-abi=softfp.
However, for a toolchain configured for arm-linux-gnueabihf and
--with-arch=armv7-a, the testcase will fail when including arm_acle.h
(which includes stdint.h, which will fail to include the non-existing
gnu/stubs-soft.h).
Other effective-targets related to arm_acle.h would also pass because
they first try without -mfloat-abi=softfp, so it seems the
simplest/safest is to add { dg-require-effective-target arm_softfp_ok }
to make sure arm_arch_v6_ok's assumption is valid.
The patch also fixes what seems to be an oversight in
data-intrinsics-armv6.c: it requires arm_arch_v6_ok, but uses
arm_arch_v6t2: the patch makes it require arm_arch_v6t2_ok.
2023-05-30 Christophe Lyon <christophe.lyon@linaro.org>
gcc/testsuite/
* gcc.target/arm/acle/data-intrinsics-armv6.c: Fix typo.
* gcc.target/arm/acle/data-intrinsics-assembly.c: Require
arm_softfp_ok.
Diffstat (limited to 'gcc/tree-vectorizer.h')
0 files changed, 0 insertions, 0 deletions