]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: testsuite: tidy up pre-run check for g2.c
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 3 Nov 2023 17:30:35 +0000 (17:30 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:55 +0000 (14:15 +0000)
commit0fcc0eff6521cb28464771b78ba3231e060382c4
tree21ba09cbcffe782a528658357dc6edf371bd1888
parentf757ea72edc3d34410a9cb13a01c6b1aaed0e1bc
arm: testsuite: tidy up pre-run check for g2.c

gcc.target/arm/g2.c is an xscale-only test, but the test is quite old
and we have improved the infrastructure for setting up such tests now.
So make use of that to reduce the number of cases where this test fails
to run.

gcc/testsuite:

* lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
Add entry to check for xscale.
* gcc.target/arm/g2.c: Use it.
gcc/testsuite/gcc.target/arm/g2.c
gcc/testsuite/lib/target-supports.exp