]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] [arm] add effective target and options for pacbti tests
authorAlexandre Oliva <oliva@adacore.com>
Mon, 21 Oct 2024 03:12:10 +0000 (00:12 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Mon, 21 Oct 2024 03:12:10 +0000 (00:12 -0300)
commit3ad0f67f7cc908fe8d4b5f8781c0cea4f25c12ed
tree4c3094391176cfa21d4e0320f714d86c8dbd9f62
parent5259d3927c1c8e3a15b4b844adef59b48c241233
[testsuite] [arm] add effective target and options for pacbti tests

arm pac and bti tests that use -march=armv8.1-m.main get an implicit
-mthumb, that is incompatible with vxworks kernel mode.  Declaring the
requirement for a 8.1-m.main-compatible toolchain is enough to avoid
those fails, because the toolchain feature test fails in kernel mode,
but taking the -march options from the standardized arch tests, after
testing for support for the corresponding effective target, makes it
generally safer, and enables us to drop skip directives and extraneous
option variants.

for  gcc/testsuite/ChangeLog

* gcc.target/arm/bti-1.c: Require arch, use its opts, drop skip.
* gcc.target/arm/bti-2.c: Likewise.
* gcc.target/arm/acle/pacbti-m-predef-11.c: Likewise.
* gcc.target/arm/acle/pacbti-m-predef-12.c: Likewise.
* gcc.target/arm/acle/pacbti-m-predef-7.c: Likewise.
* g++.target/arm/pac-1.C: Likewise.  Drop +mve.
gcc/testsuite/g++.target/arm/pac-1.C
gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-11.c
gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-12.c
gcc/testsuite/gcc.target/arm/acle/pacbti-m-predef-7.c
gcc/testsuite/gcc.target/arm/bti-1.c
gcc/testsuite/gcc.target/arm/bti-2.c