]> git.ipfire.org Git - thirdparty/gcc.git/commit
testsuite: arm: tighten up mode-specific ISA tests
authorRichard Earnshaw <rearnsha@arm.com>
Tue, 7 Nov 2023 10:39:14 +0000 (10:39 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Mon, 13 Nov 2023 14:15:57 +0000 (14:15 +0000)
commitfa3fa735db16ec441db2aa155c941f289750576b
treed6b9c792d00836a6c716c8849ab40b91c2749645
parent47b3f2c84dea6460b1cd14b5dbca4c2ad609f2ca
testsuite: arm: tighten up mode-specific ISA tests

Some of the standard Arm architecture tests require the test to use a
specific instruction set (arm or thumb).  But although the framework
was checking that the flag was accepted, it wasn't checking that the
flag wasn't somehow being override (eg by run-specific options).  We
can improve these tests easily by checking whether or not __thumb-_ is
defined.

gcc/testsuite:

* lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok):
For instruction-set specific tests, check that __thumb__ is, or
isn't defined as appropriate.
gcc/testsuite/lib/target-supports.exp