pr64616.c: Test dump rather than assembly to work accross ARM targets.
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Mon, 11 May 2015 10:45:25 +0000 (10:45 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Mon, 11 May 2015 10:45:25 +0000 (10:45 +0000)
2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    gcc/
    * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
    accross ARM targets.

From-SVN: r223001

gcc/ChangeLog
gcc/testsuite/gcc.target/arm/pr64616.c

index 7d9f2bbf2c1745407f833915ac734510d660eeea..0d78db9bcaad64b0a1ac56417ecc14c4821fba1e 100644 (file)
@@ -1,3 +1,8 @@
+2015-05-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
+       accross ARM targets.
+
 2015-05-11  Christian Bruel  <christian.bruel@st.com>
 
        * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
index c686ffa8dd36a210249172002a5c3894ff20c970..2280f21adb18df9d2f3265998171335ea0ba80b0 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-O2" } */
+/* { dg-options "-O2 -fdump-rtl-cprop2" } */
 
 int f (int);
 unsigned int glob;
@@ -11,4 +11,5 @@ g ()
   glob = 5;
 }
 
-/* { dg-final { scan-assembler-times "ldr" 2 } } */
+/* { dg-final { scan-rtl-dump "GLOBAL COPY-PROP" "cprop2" } } */
+/* { dg-final { cleanup-rtl-dump "cprop2" } } */