RISC-V: Adjust testcase for rvv/base/user-1.c
authorKito Cheng <kito.cheng@sifive.com>
Fri, 7 Oct 2022 08:54:05 +0000 (16:54 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 10 Oct 2022 13:10:26 +0000 (21:10 +0800)
The -march option check isn't precise enough, -march=rv*v* also mach any
zve extensions.

gcc/testsuite/ChangeLog:

* gcc.target/riscv/rvv/base/user-1.c: Add dg-options and drop
dg-skip-if.

Reported-by: Christoph Müllner <christoph.muellner@vrull.eu>
Tested-by: Christoph Müllner <christoph.muellner@vrull.eu>
Reviewed-by: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
gcc/testsuite/gcc.target/riscv/rvv/base/user-1.c

index fa1f0f3..00fb73f 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-skip-if "test rvv intrinsic" { *-*-* } { "*" } { "-march=rv*v*" } } */
+/* { dg-options "-O3 -march=rv32gcv -mabi=ilp32d" } */
 
 #include "riscv_vector.h"