[Darwin, PPC, testsuite] Fix spec-barr-1.c for Darwin.
authorIain Sandoe <iain@sandoe.co.uk>
Mon, 24 Jun 2019 19:25:44 +0000 (19:25 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Mon, 24 Jun 2019 19:25:44 +0000 (19:25 +0000)
We just needed to adjust the regex to accept Darwin's register names.

2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>

* gcc.target/powerpc/spec-barr-1.c: Adjust scan assembler regex
to recognise Darwin's register names.

From-SVN: r272626

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/spec-barr-1.c

index ec0566c10b580798fe08b8527748682ffe93560b..c3f23d9b1b92de899f05dd55cda0995b88308343 100644 (file)
@@ -1,3 +1,8 @@
+2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>
+
+       * gcc.target/powerpc/spec-barr-1.c: Adjust scan assembler regex
+       to recognise Darwin's register names.
+
 2019-06-24  Iain Sandoe  <iain@sandoe.co.uk>
 
        * gcc.dg/cpp/isysroot-1.c: Use <example.h> as the test header.
index a22bf581da7c640e47815066393caa3a584df7e0..d8375158094806396b6a2e80a0e465c07c0f1714 100644 (file)
@@ -6,4 +6,4 @@ void foo ()
   __builtin_ppc_speculation_barrier ();
 }
 
-/* { dg-final { scan-assembler "ori 31,31,0" } } */
+/* { dg-final { scan-assembler {ori\s+r?31,r?31,r?0} } } */