zero_bits_compound-2.c: Fix test for aarch64.
authorMichael Collison <michael.collison@arm.com>
Thu, 12 Jan 2017 08:12:02 +0000 (08:12 +0000)
committerMichael Collison <collison@gcc.gnu.org>
Thu, 12 Jan 2017 08:12:02 +0000 (08:12 +0000)
2016-11-30  Michael Collison  <michael.collison@arm.com>

* gcc.dg/zero_bits_compound-2.c: Fix test for aarch64.

From-SVN: r244348

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/zero_bits_compound-2.c

index c8c9c62..b10c036 100644 (file)
@@ -1,3 +1,7 @@
+2017-01-12  Michael Collison  <michael.collison@arm.com>
+
+       * gcc.dg/zero_bits_compound-2.c: Fix test for aarch64.
+
 2017-01-11  Julia Koval  <julia.koval@intel.com>
            Uros Bizjak  <ubizjak@gmail.com>
 
index f6c390a..64e6744 100644 (file)
@@ -3,7 +3,7 @@
 
 /* { dg-do compile { target i?86-*-* x86_64-*-* s390*-*-* aarch64*-*-* } } */
 /* { dg-require-effective-target lp64 } */
-/* { dg-options "-O3 -dP" } */
+/* { dg-options "-O3 -dP -fdump-rtl-combine" } */
 
 unsigned long foo (unsigned char c)
 {
@@ -36,4 +36,6 @@ unsigned long bar (unsigned char c)
 }
 
 /* Check that an AND expression was used.  */
-/* { dg-final { scan-assembler-times "\\(and:" 2 } } */
+/* { dg-final { scan-assembler-times "\\(and:" 2 { target { ! aarch64*-*-* } } } } */
+/* { dg-final { scan-rtl-dump "\\(and:DI" "combine" { target aarch64*-*-* } } } */
+/* { dg-final { scan-rtl-dump "\\(and:SI" "combine" { target aarch64*-*-* } } } */