This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][AArch64] Testcase fix for __ATOMIC_CONSUME
- From: Mike Stump <mikestump at comcast dot net>
- To: Alex Velenko <Alex dot Velenko at arm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, marcus dot shawcroft at arm dot com
- Date: Wed, 28 Jan 2015 09:41:33 -0800
- Subject: Re: [PATCH][AArch64] Testcase fix for __ATOMIC_CONSUME
- Authentication-results: sourceware.org; auth=none
- References: <1422375847-18680-1-git-send-email-alex dot velenko at arm dot com>
On Jan 27, 2015, at 8:24 AM, Alex Velenko <Alex.Velenko@arm.com> wrote:
> This patch fixes aarch64/atomic-op-consume.c test to expect safe "LDAXR"
> instruction to be generated when __ATOMIC_CONSUME semantics is requested.
Did you see:
/* Workaround for Bugzilla 59448. GCC doesn't track consume properly, so
be conservative and promote consume to acquire. */
if (val == MEMMODEL_CONSUME)
val = MEMMODEL_ACQUIRE;
in builtins.c? Feels like if gcc isn’t going to support it for you, then testing for it would be, hard?