From 4de1ded224ff859de7801419bbce159354bc3426 Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Mon, 24 Jun 2019 19:25:44 +0000 Subject: [PATCH] [Darwin, PPC, testsuite] Fix spec-barr-1.c for Darwin. We just needed to adjust the regex to accept Darwin's register names. 2019-06-24 Iain Sandoe * gcc.target/powerpc/spec-barr-1.c: Adjust scan assembler regex to recognise Darwin's register names. From-SVN: r272626 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/powerpc/spec-barr-1.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index ec0566c10b5..c3f23d9b1b9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2019-06-24 Iain Sandoe + + * gcc.target/powerpc/spec-barr-1.c: Adjust scan assembler regex + to recognise Darwin's register names. + 2019-06-24 Iain Sandoe * gcc.dg/cpp/isysroot-1.c: Use as the test header. diff --git a/gcc/testsuite/gcc.target/powerpc/spec-barr-1.c b/gcc/testsuite/gcc.target/powerpc/spec-barr-1.c index a22bf581da7..d8375158094 100644 --- a/gcc/testsuite/gcc.target/powerpc/spec-barr-1.c +++ b/gcc/testsuite/gcc.target/powerpc/spec-barr-1.c @@ -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} } } */ -- 2.30.2