From 3f880d38dc55082cf671731ab4424b3808bbaf30 Mon Sep 17 00:00:00 2001 From: Alex Velenko Date: Mon, 16 Feb 2015 18:12:10 +0000 Subject: [PATCH] atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr. gcc/testsuite/ * gcc.target/aarch64/atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr. * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaex. From-SVN: r220740 --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c | 4 ++-- gcc/testsuite/gcc.target/arm/atomic-op-consume.c | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 252865c20e5..abc735816a2 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2015-02-16 Alex Velenko + + * gcc.target/aarch64/atomic-op-consume.c (scan-assember-times): + Directive adjusted to scan for ldaxr. + * gcc.target/arm/atomic-op-consume.c (scan-assember-times): Directive + adjusted to scan for ldaex. + 2015-02-16 Paolo Carlini PR c++/65080 diff --git a/gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c b/gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c index 0e6dbbed572..26ebbdf70ab 100644 --- a/gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c +++ b/gcc/testsuite/gcc.target/aarch64/atomic-op-consume.c @@ -3,6 +3,6 @@ #include "atomic-op-consume.x" -/* PR59448 consume not implemented yet. */ -/* { dg-final { scan-assembler-times "ldxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 { xfail *-*-* } } } */ +/* Scan for ldaxr is a PR59448 consume workaround. */ +/* { dg-final { scan-assembler-times "ldaxr\tw\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */ /* { dg-final { scan-assembler-times "stxr\tw\[0-9\]+, w\[0-9\]+, \\\[x\[0-9\]+\\\]" 6 } } */ diff --git a/gcc/testsuite/gcc.target/arm/atomic-op-consume.c b/gcc/testsuite/gcc.target/arm/atomic-op-consume.c index fafe4d6f1be..6c5f9897261 100644 --- a/gcc/testsuite/gcc.target/arm/atomic-op-consume.c +++ b/gcc/testsuite/gcc.target/arm/atomic-op-consume.c @@ -5,7 +5,7 @@ #include "../aarch64/atomic-op-consume.x" -/* PR59448 consume not implemented yet. */ -/* { dg-final { scan-assembler-times "ldrex\tr\[0-9\]+, \\\[r\[0-9\]+\\\]" 6 { xfail *-*-* } } } */ +/* Scan for ldaex is a PR59448 consume workaround. */ +/* { 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" } } */ -- 2.30.2