Hi! On Tue, May 12, 2020 at 02:48:40PM +0800, luoxhu wrote: > diff --git a/gcc/testsuite/gcc.target/powerpc/doloop-2.c > b/gcc/testsuite/gcc.target/powerpc/doloop-2.c > new file mode 100644 > index 00000000000..dc8516bb0ab > --- /dev/null > +++ b/gcc/testsuite/gcc.target/powerpc/doloop-2.c > @@ -0,0 +1,14 @@ > +/* { dg-do compile { target powerpc*-*-* } } */
Just { dg-do compiler } please, *everything* that runs this testsuite is powerpc*-*-*; but compile is the default as well, so you can leave that line completely out as well, if you want. > +/* { dg-final { scan-assembler-not "-1" } } */ This will fail the test for the string "-1" anywhere in the file. Like, if it was called "doloop-1.c" it would fail, or "doloop-12345.c". \m and \M can help for that last case, but you probably want to make the regex a bit more selective ;-) (And, document what it doesn't want to see, if it isn't really obvious?) Segher