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

login
register
mail settings
Submitter Marcus Shawcroft
Date Oct. 18, 2010, 1:46 p.m.
Message ID <000801cb6eca$d4813dc0$7d83b940$@shawcroft@arm.com>
Download mbox | patch
Permalink /patch/68191/
State New
Headers show

Comments

Marcus Shawcroft - Oct. 18, 2010, 1:46 p.m.
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.
Mark Mitchell - Oct. 19, 2010, 5:52 p.m.
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.

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)
 {