Fix scan-assembler patterns in i386/naked-{1,2}.c
authorTom de Vries <tom@codesourcery.com>
Thu, 2 Nov 2017 09:07:27 +0000 (09:07 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 2 Nov 2017 09:07:27 +0000 (09:07 +0000)
2017-11-02  Tom de Vries  <tom@codesourcery.com>

PR testsuite/82415
* gcc.target/i386/naked-1.c: Make scan patterns more precise.
* gcc.target/i386/naked-2.c: Same.

From-SVN: r254338

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/naked-1.c
gcc/testsuite/gcc.target/i386/naked-2.c

index 3556b869226c73c76b1df6e829967d5e116bf250..c95151048d0b2a90d0cd8282f8043099b7aa65f3 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-02  Tom de Vries  <tom@codesourcery.com>
+
+       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  <rguenther@suse.de>
 
        PR middle-end/82765
index cf62bb1114f087353f10527cfff796e582955f23..07bb10edd8f314195e60104e6b2447ea9030be42 100644 (file)
@@ -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$" } } */
index adcd7121541642ba20458ef9ac4cfe58d2c77c01..2da8b81a8cb2398ef4cfe9291ed48886bec066b5 100644 (file)
@@ -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" } } */