On Tue, Apr 15, 2025 at 3:11 PM NightStrike <[email protected]> wrote: > > On Tue, Apr 15, 2025 at 5:02 AM LIU Hao <[email protected]> wrote: > > > > 在 2025-4-14 04:10, Peter Damianov 写道: > > > diff --git a/gcc/testsuite/gcc.target/i386/amd64-abi-9.c > > > b/gcc/testsuite/gcc.target/i386/amd64-abi-9.c > > > index 9b2cd7e7b49..827215be3e2 100644 > > > --- a/gcc/testsuite/gcc.target/i386/amd64-abi-9.c > > > +++ b/gcc/testsuite/gcc.target/i386/amd64-abi-9.c > > > @@ -1,18 +1,46 @@ > > > /* { dg-do compile { target { ! ia32 } } } */ > > > /* { dg-options "-O2 -mno-sse -mno-skip-rax-setup" } */ > > > + > > > +// For sysv abi, eax holds the number of XMM registers used in the call. > > > +// Since sse is disabled, check that it is zeroed > > > /* { dg-final { scan-assembler-times "xorl\[\\t \]*\\\%eax,\[\\t > > > \]*%eax" 2 } } */ > > > > > > -void foo (const char *, ...); > > > +// For ms abi, the argument should go in edx > > > +/* { dg-final { scan-assembler-times "movl\[\\t \]*\\\$20,\[\\t > > > \[]*%edx" 2 } } */ > > > > is this a superfluous `\[` ? --------------------------------------^^ > > > > > + > > > +// For sysv abi, the argument should go in esi > > > +/* { dg-final { scan-assembler-times "movl\[\\t \]*\\\$20,\[\\t > > > \[]*%esi" 2 } } */ > > > + > > > + > > > > ditto. > > Both should be \] instead of \[]
ping
