[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 5ed47c13633b7313dbac38246a78d87a3d4c690f..3e394ae407ce4d2458588d08ab40a0bd0adb06dd 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 68dc65c6d00313fd3d3b9078b4a438f9b0394c82..cd8c44e20ab0900481373193ec4b7fda86aadfe5 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