On Thu, May 8, 2025 at 10:02 AM Jiawei <jia...@iscas.ac.cn> wrote: > > RISC-V backend don't support '-mgeneral-regs-only' option, skip it. > https://godbolt.org/z/38M8vPW74
The test should instead use /* { dg-additional-options "-mgeneral-regs-only" { target { x86_64-*-* i?86-*-* } } } */ OK with that change. Richard. > 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 >