RISC-V backend don't support '-mgeneral-regs-only' option, skip it.
https://godbolt.org/z/38M8vPW74

gcc/testsuite/ChangeLog:

                * gcc.dg/pr119160.c: Skip for RISC-V backend.

---
 gcc/testsuite/gcc.dg/pr119160.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/testsuite/gcc.dg/pr119160.c b/gcc/testsuite/gcc.dg/pr119160.c
index b4629a11d9..d96e4de169 100644
--- a/gcc/testsuite/gcc.dg/pr119160.c
+++ b/gcc/testsuite/gcc.dg/pr119160.c
@@ -1,5 +1,6 @@
 /* { dg-do run } */
 /* { dg-options "-O2 -finstrument-functions-once -favoid-store-forwarding 
-fnon-call-exceptions -fschedule-insns -mgeneral-regs-only -Wno-psabi" } */
+/* { dg-skip-if "" { riscv*-*-* } } */
 
 typedef __attribute__((__vector_size__ (32))) int V;
 
-- 
2.43.0

Reply via email to