]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: testsuite: Add vector requirement to test.
authorRobin Dapp <rdapp@oss.qualcomm.com>
Fri, 23 Jan 2026 08:25:56 +0000 (09:25 +0100)
committerRobin Dapp <rdapp@oss.qualcomm.com>
Fri, 23 Jan 2026 19:22:21 +0000 (20:22 +0100)
This adds the missing vector requirement to rvv/base/pr122869.c

Signed-off-by: Robin Dapp <rdapp@oss.qualcomm.com>
gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/pr122869.c: Add
vector requirement.

gcc/testsuite/gcc.target/riscv/rvv/base/pr122869.c

index e00ac04bebbeb7d90b6878d999e03fa3f086f397..6f9be80841cd757708a22a69fc26246bc89f8fd5 100644 (file)
@@ -1,5 +1,7 @@
-/* { dg-do run } */
+/* { dg-do run { target { riscv_v } } } */
 /* { dg-additional-options "-O0 -std=gnu99" } */
+/* { dg-require-effective-target riscv_v_ok } */
+
 /* We used to generate a separate riscv_read_vl () after the FoF load.
    In case of -O0 (or otherwise) it could happen that "g" wouldn't
    get a hard reg and we'd need to store it, clobbering VL.