From: Alex Velenko Date: Mon, 16 Feb 2015 18:12:10 +0000 (+0000) Subject: atomic-op-consume.c (scan-assember-times): Directive adjusted to scan for ldaxr. X-Git-Tag: releases/gcc-5.1.0~933 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f880d38dc55082cf671731ab4424b3808bbaf30;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 252865c20e5c..abc735816a2f 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 0e6dbbed5723..26ebbdf70aba 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 fafe4d6f1be5..6c5f98972613 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" } } */