]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Add require-effective-target to pr113429 testcase
authorPatrick O'Neill <patrick@rivosinc.com>
Sat, 27 Jan 2024 02:38:46 +0000 (18:38 -0800)
committerPatrick O'Neill <patrick@rivosinc.com>
Mon, 29 Jan 2024 17:49:37 +0000 (09:49 -0800)
The pr113429 testcase fails with newlib spike runs. Adding
require-effective-target rv64 and riscv_v fixes the issue.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/vsetvl/pr113429.c: Add
require-effective-target rv64 and riscv_v

Signed-off-by: Patrick O'Neill <patrick@rivosinc.com>
gcc/testsuite/gcc.target/riscv/rvv/vsetvl/pr113429.c

index 05c3eeecb94cd2b1dd59d39e7e6893bf5013d68d..a7f5db616d8b5f4034c417b80e6e9a4342cf53b8 100644 (file)
@@ -1,5 +1,7 @@
 /* { dg-do run } */
 /* { dg-options "-march=rv64gcv_zvl256b -mabi=lp64d -O3" } */
+/* { dg-require-effective-target rv64 } */
+/* { dg-require-effective-target riscv_v } */
 
 long a;
 int b, c, d, e, f, g;