From: Tom de Vries Date: Thu, 2 Nov 2017 09:07:27 +0000 (+0000) Subject: Fix scan-assembler patterns in i386/naked-{1,2}.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=331b46738ccd56303d226aeedf3c9ed0c6b02175;p=gcc.git Fix scan-assembler patterns in i386/naked-{1,2}.c 2017-11-02 Tom de Vries PR testsuite/82415 * gcc.target/i386/naked-1.c: Make scan patterns more precise. * gcc.target/i386/naked-2.c: Same. From-SVN: r254338 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3556b869226..c95151048d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2017-11-02 Tom de Vries + + PR testsuite/82415 + * gcc.target/i386/naked-1.c: Make scan patterns more precise. + * gcc.target/i386/naked-2.c: Same. + 2017-11-02 Richard Biener PR middle-end/82765 diff --git a/gcc/testsuite/gcc.target/i386/naked-1.c b/gcc/testsuite/gcc.target/i386/naked-1.c index cf62bb1114f..07bb10edd8f 100644 --- a/gcc/testsuite/gcc.target/i386/naked-1.c +++ b/gcc/testsuite/gcc.target/i386/naked-1.c @@ -10,5 +10,5 @@ foo (void) __asm__ ("# naked"); } /* { dg-final { scan-assembler "# naked" } } */ -/* { dg-final { scan-assembler "ud2" } } */ -/* { dg-final { scan-assembler-not "ret" } } */ +/* { dg-final { scan-assembler "(?n)^\\s*ud2$" } } */ +/* { dg-final { scan-assembler-not "(?n)^\\s*ret$" } } */ diff --git a/gcc/testsuite/gcc.target/i386/naked-2.c b/gcc/testsuite/gcc.target/i386/naked-2.c index adcd7121541..2da8b81a8cb 100644 --- a/gcc/testsuite/gcc.target/i386/naked-2.c +++ b/gcc/testsuite/gcc.target/i386/naked-2.c @@ -10,5 +10,5 @@ foo (void) __asm__ ("# naked"); } /* { dg-final { scan-assembler "# naked" } } */ -/* { dg-final { scan-assembler-not "push" } } */ -/* { dg-final { scan-assembler-not "pop" } } */ +/* { dg-final { scan-assembler-not "(?n)^\\s*push" } } */ +/* { dg-final { scan-assembler-not "(?n)^\\s*pop" } } */