From 1d896f48fa2f796ba13773ab735ef40fa3afb257 Mon Sep 17 00:00:00 2001 From: Ramana Radhakrishnan Date: Mon, 16 Jul 2018 09:03:48 +0000 Subject: [PATCH] [Patch AArch64] Add early clobber for aarch64_store_exclusive. From-SVN: r262686 --- gcc/ChangeLog | 5 +++++ gcc/config/aarch64/atomics.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5ed47c13633..3e394ae407c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-07-16 Ramana Radhakrishnan + + * config/aarch64/atomics.md (aarch64_store_execlusive): Add + early clobber. + 2018-07-16 Eric Botcazou PR tree-optimization/86514 diff --git a/gcc/config/aarch64/atomics.md b/gcc/config/aarch64/atomics.md index 68dc65c6d00..cd8c44e20ab 100644 --- a/gcc/config/aarch64/atomics.md +++ b/gcc/config/aarch64/atomics.md @@ -530,7 +530,7 @@ ) (define_insn "aarch64_store_exclusive" - [(set (match_operand:SI 0 "register_operand" "=r") + [(set (match_operand:SI 0 "register_operand" "=&r") (unspec_volatile:SI [(const_int 0)] UNSPECV_SX)) (set (match_operand:ALLI 1 "aarch64_sync_memory_operand" "=Q") (unspec_volatile:ALLI -- 2.30.2