]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: correctly detect armv6t2 hardware for acle execution tests
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 14:03:50 +0000 (14:03 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:54 +0000 (14:15 +0000)
commit04367b11ecad7aecd9dc94cd71671757c9be12c9
treed09a4a6cd2fd22652f0bd020d229f7fc30c73069
parent0f593c0521caab8cfac53514b1a5e7d0d0dd1932
arm: testsuite: correctly detect armv6t2 hardware for acle execution tests

Some of the ACLE tests for Arm are executable, but we were only testing
that the compiler could generate code for them, not that the hardware
was capable of executing them.  Fix this by adding an execution test for
suitable hardware.

gcc/testsuite:

* lib/target-supports.exp (check_effective_target_arm_arch_v6t2_hw_ok):
New function.
* gcc.target/arm/acle/data-intrinsics-armv6.c: Use it.
* gcc.target/arm/acle/data-intrinsics-rbit.c: Likewise.
gcc/testsuite/gcc.target/arm/acle/data-intrinsics-armv6.c
gcc/testsuite/gcc.target/arm/acle/data-intrinsics-rbit.c
gcc/testsuite/lib/target-supports.exp