atomic-op-consume.c (scan-assember-times): Adjust scan-assembler-times pattern.
authorAlex Velenko <Alex.Velenko@arm.com>
Wed, 28 Jan 2015 15:11:58 +0000 (15:11 +0000)
committerAlex Velenko <avelenko@gcc.gnu.org>
Wed, 28 Jan 2015 15:11:58 +0000 (15:11 +0000)
2015-01-28  Alex Velenko  <Alex.Velenko@arm.com>

gcc/testsuite/

* gcc.target/arm/atomic-op-consume.c (scan-assember-times): Adjust
scan-assembler-times pattern.

From-SVN: r220208

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/arm/atomic-op-consume.c

index 3013403fa1c0acb85cc499660d66ac94edf8c4fa..fb86e8c9fbf41e59f26611e7cd9be2204d267266 100644 (file)
@@ -1,3 +1,8 @@
+2015-01-28  Alex Velenko  <Alex.Velenko@arm.com>
+
+       * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Adjust
+       scan-assembler-times pattern.
+
 2015-01-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
 
        PR middle-end/64809
index 0354717cb70b32b2f5f0b52f507fe9d165aa97dd..cc6c02835044ca50f8fe67425f8157f249c6bcf3 100644 (file)
@@ -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" } } */