gnu/gcc/5900e859fbd0ca39d81a275bcc7c96814c0606e1 testsuite: Select SVE2 for the aarch64_sve2_hw probe
check_effective_target_aarch64_sve2_hw compiles its probe program with
no architecture options, so the assembler rejects the SVE2 instruction
in the inline asm unless the toolchain already defaults to SVE2. The
check then reports 0 even on SVE2 hardware and every test that requires
it is skipped.
Select SVE2 for the probe with a target pragma, the way
check_effective_target_aarch64_sve2p1_hw already does. On a Neoverse V2
host this turns gcc.target/aarch64/sve2/pr122069_2.c and
gcc.target/aarch64/sve2/pr123775.c from UNSUPPORTED into PASS.
Bootstrapped and tested on aarch64-none-linux-gnu.
gcc/testsuite/ChangeLog:
* lib/target-supports.exp
(check_effective_target_aarch64_sve2_hw): Add a target pragma to
the probe program.
Signed-off-by: Kyrylo Tkachov <ktkachov@nvidia.com>
1 file changed