Hi,
This should be restricted to arm/aarch64 and x86. So it should be:

/* { dg-additional-options "-mgeneral-regs-only" { target { x86_64-*-*
i?86-*-* aarch64*-*-* arm*-*-* } } } */

Konstantinos

On Thu, May 8, 2025 at 11:36 AM jiawei <jia...@iscas.ac.cn> wrote:
>
>
> 在 2025/5/8 16:25, Richard Biener 写道:
> > 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.
>
> Thanks for your suggestion, will update it in the next version.
>
> BR,
>
> Jiawei
>
> >> 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