SVE2: Fix aarch64-sve2-acle-asm tests.
authorTamar Christina <tamar.christina@arm.com>
Fri, 8 Jan 2021 10:44:22 +0000 (10:44 +0000)
committerTamar Christina <tamar.christina@arm.com>
Fri, 8 Jan 2021 10:45:23 +0000 (10:45 +0000)
commit07fb24a3daf0a46e3e39c0bad99eae6e34e5aa0f
treeb2f1d88e8927fee670871855a983e3e582fc1936
parente811f10b61aa2d26416f3d6a79f024dcd21e895c
SVE2: Fix aarch64-sve2-acle-asm tests.

This fixes a logical inconsistency with the SVE2 ACLE tests where the SVE2 tests
are checking for SVE support in the assembler instead of SVE2.

This makes all these tests fail when the user has an SVE enabled assembler but
not an SVE2 one.

gcc/testsuite/ChangeLog:

* lib/target-supports.exp
(check_effective_target_aarch64_asm_sve2_ok): New.
* g++.target/aarch64/sve2/acle/aarch64-sve2-acle-asm.exp: Use it.
* gcc.target/aarch64/sve2/acle/aarch64-sve2-acle-asm.exp: Likewise.
gcc/testsuite/g++.target/aarch64/sve2/acle/aarch64-sve2-acle-asm.exp
gcc/testsuite/gcc.target/aarch64/sve2/acle/aarch64-sve2-acle-asm.exp
gcc/testsuite/lib/target-supports.exp