From 10ecde5c3442cd24c8f13bd29c20a2c48be1bad8 Mon Sep 17 00:00:00 2001 From: Kevin Qin Date: Fri, 21 Feb 2014 07:45:48 +0000 Subject: [AArch64] Add register constraints to avoid generating STLXR and STXR with unpredictable behavior. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201841 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/AArch64/AArch64InstrInfo.td | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/Target/AArch64') diff --git a/lib/Target/AArch64/AArch64InstrInfo.td b/lib/Target/AArch64/AArch64InstrInfo.td index c961fb2c5d..2a3cad0421 100644 --- a/lib/Target/AArch64/AArch64InstrInfo.td +++ b/lib/Target/AArch64/AArch64InstrInfo.td @@ -2596,6 +2596,7 @@ class A64I_SRexs_impl size, bits<3> opcode, string asm, dag outs, pat, itin> { let mayStore = 1; let PostEncoderMethod = "fixLoadStoreExclusive<1,0>"; + let Constraints = "@earlyclobber $Rs"; } multiclass A64I_SRex opcode, string prefix> { -- cgit v1.2.3