[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 ec0566c..c3f23d9 100644 (file)
@@ -1,5 +1,10 @@
 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.
        * gcc.dg/cpp/usr/include/stdio.h: Rename...
        * gcc.dg/cpp/usr/include/example.h: ... to this.
index a22bf58..d837515 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} } } */