From: Alex Velenko Date: Wed, 28 Jan 2015 15:11:58 +0000 (+0000) Subject: atomic-op-consume.c (scan-assember-times): Adjust scan-assembler-times pattern. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=26586d771d2e0c7329c656c8f9a39c8151b53d44;p=gcc.git atomic-op-consume.c (scan-assember-times): Adjust scan-assembler-times pattern. 2015-01-28 Alex Velenko gcc/testsuite/ * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Adjust scan-assembler-times pattern. From-SVN: r220208 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3013403fa1c..fb86e8c9fbf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-01-28 Alex Velenko + + * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Adjust + scan-assembler-times pattern. + 2015-01-28 Yuri Rumyantsev PR middle-end/64809 diff --git a/gcc/testsuite/gcc.target/arm/atomic-op-consume.c b/gcc/testsuite/gcc.target/arm/atomic-op-consume.c index 0354717cb70..cc6c0283504 100644 --- a/gcc/testsuite/gcc.target/arm/atomic-op-consume.c +++ b/gcc/testsuite/gcc.target/arm/atomic-op-consume.c @@ -5,6 +5,9 @@ #include "../aarch64/atomic-op-consume.x" -/* { dg-final { scan-assembler-times "ldrex\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */ +/* To workaround Bugzilla 59448 issue, a request for __ATOMIC_CONSUME is always + promoted to __ATOMIC_ACQUIRE, implemented as MEMMODEL_ACQUIRE. This causes + "LDAEX" to be generated instead of "LDREX". */ +/* { dg-final { scan-assembler-times "ldaex\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */ /* { dg-final { scan-assembler-times "strex\t...?, r\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 } } */ /* { dg-final { scan-assembler-not "dmb" } } */