diff mbox

[ARM] Fix test case to permit dmb|mcr as alternatives to __sync_synchronize()

Message ID 000801cb6eca$d4813dc0$7d83b940$@shawcroft@arm.com
State New
Headers show

Commit Message

Marcus Shawcroft Oct. 18, 2010, 1:46 p.m. UTC
The ARM specific test case gcc.target/arm/synchronize.c detects that a call
to __sync_synchronize() is emitted. This patch permits DMB and MCR as
alternatives.

/Marcus


2010-10-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>

        * gcc.target/arm/synchronize.c: Permit dmb or mcr in assembler scan.

Comments

Mark Mitchell Oct. 19, 2010, 5:52 p.m. UTC | #1
On 10/18/2010 6:46 AM, Marcus Shawcroft wrote:

> 2010-10-18  Marcus Shawcroft  <marcus.shawcroft@arm.com>
> 
>         * gcc.target/arm/synchronize.c: Permit dmb or mcr in assembler scan.

OK.
diff mbox

Patch

diff --git a/gcc/testsuite/gcc.target/arm/synchronize.c b/gcc/testsuite/gcc.target/arm/synchronize.c
index 81ed848..8626d8e 100644
--- a/gcc/testsuite/gcc.target/arm/synchronize.c
+++ b/gcc/testsuite/gcc.target/arm/synchronize.c
@@ -1,4 +1,4 @@ 
-/* { dg-final { scan-assembler "__sync_synchronize" { target arm*-*-linux-*eabi } } } */
+/* { dg-final { scan-assembler "__sync_synchronize|dmb|mcr" { target arm*-*-linux-*eabi } } } */
 
 void *foo (void)
 {