Use scan-rtl-dump in i386/vararg-loc.c
authorTom de Vries <tom@codesourcery.com>
Wed, 1 Jul 2015 17:33:01 +0000 (17:33 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Wed, 1 Jul 2015 17:33:01 +0000 (17:33 +0000)
2015-07-01  Tom de Vries  <tom@codesourcery.com>

PR testsuite/66723
* gcc.target/i386/vararg-loc.c: Use scan-rtl-dump instead of
scan-assembler.

From-SVN: r225266

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/vararg-loc.c

index a5ea93313be2a879c91a526395a2b8bf1862cebf..88a7bc649a4c7c2524f85402d253d5622bd90109 100644 (file)
@@ -1,3 +1,9 @@
+2015-07-01  Tom de Vries  <tom@codesourcery.com>
+
+       PR testsuite/66723
+       * gcc.target/i386/vararg-loc.c: Use scan-rtl-dump instead of
+       scan-assembler.
+
 2015-07-01  Thomas Koenig  <tkoenig@gcc.gnu.org>
 
        * gfortran.dg/warn_conversion_8.f90:  New test.
index f236fe3986eb7d40dee074d170b516f24ed72898..8134ba8c0cbaff9ef01c3967ff6023c04f5904b7 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-g -O0" } */
+/* { dg-options "-g -O0 -fdump-rtl-final" } */
 
 #include <stdarg.h>
 
@@ -22,6 +22,6 @@ f (int a, ...)                        /* 8.  */
   return sum;
 }
 
-/* { dg-final { scan-assembler-not "\\.loc 1 \[6789\] 0" } } */
-/* { dg-final { scan-assembler-times "\\.loc 1 18 0" 1 } } */
-/* { dg-final { scan-assembler-times "\\.loc 1 20 0" 1 } } */
+/* { dg-final { scan-rtl-dump-not "vararg-loc\\.c:\[6789\] " "final" } } */
+/* { dg-final { scan-rtl-dump "vararg-loc\\.c:18 " "final" } } */
+/* { dg-final { scan-rtl-dump "vararg-loc\\.c:20 " "final" } } */