This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH, ARM] Fix test case to permit dmb|mcr as alternatives to __sync_synchronize()
- From: "Marcus Shawcroft" <marcus dot shawcroft at arm dot com>
- To: <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 18 Oct 2010 14:46:13 +0100
- Subject: [PATCH, ARM] Fix test case to permit dmb|mcr as alternatives to __sync_synchronize()
- References:
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.
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)
{