[Patch AArch64] Add early clobber for aarch64_store_exclusive.
authorRamana Radhakrishnan <ramana.radhakrishnan@arm.com>
Mon, 16 Jul 2018 09:03:48 +0000 (09:03 +0000)
committerRamana Radhakrishnan <ramana@gcc.gnu.org>
Mon, 16 Jul 2018 09:03:48 +0000 (09:03 +0000)
From-SVN: r262686

gcc/ChangeLog
gcc/config/aarch64/atomics.md

index 5ed47c1..3e394ae 100644 (file)
@@ -1,3 +1,8 @@
+2018-07-16  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
+
+       * config/aarch64/atomics.md (aarch64_store_execlusive<mode>): Add
+       early clobber.
+
 2018-07-16  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR tree-optimization/86514
index 68dc65c..cd8c44e 100644 (file)
 )
 
 (define_insn "aarch64_store_exclusive<mode>"
-  [(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