summaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcInstrInfo.td
diff options
context:
space:
mode:
authorVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-09 23:32:07 +0000
committerVenkatraman Govindaraju <venkatra@cs.wisc.edu>2014-03-09 23:32:07 +0000
commit08da01c74136c221ec0cfcb00db8552ce926f54c (patch)
tree1a86d4e18a3ed065bd3cef8ddae8a74f09f7676b /lib/Target/Sparc/SparcInstrInfo.td
parentf749c23912418547085d3b43964163a55d8a2e82 (diff)
downloadllvm-08da01c74136c221ec0cfcb00db8552ce926f54c.tar.gz
llvm-08da01c74136c221ec0cfcb00db8552ce926f54c.tar.bz2
llvm-08da01c74136c221ec0cfcb00db8552ce926f54c.tar.xz
[Sparc] Add support for decoding 'swap' instruction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcInstrInfo.td')
-rw-r--r--lib/Target/Sparc/SparcInstrInfo.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/Sparc/SparcInstrInfo.td b/lib/Target/Sparc/SparcInstrInfo.td
index fe3227e26b..960261ce98 100644
--- a/lib/Target/Sparc/SparcInstrInfo.td
+++ b/lib/Target/Sparc/SparcInstrInfo.td
@@ -1107,7 +1107,7 @@ let Predicates = [HasV9], hasSideEffects = 1, rd = 0, rs1 = 0b01111 in
def MEMBARi : F3_2<2, 0b101000, (outs), (ins simm13Op:$simm13),
"membar $simm13", []>;
-let Constraints = "$val = $dst" in {
+let Constraints = "$val = $dst", DecoderMethod = "DecodeSWAP" in {
def SWAPrr : F3_1<3, 0b001111,
(outs IntRegs:$dst), (ins MEMrr:$addr, IntRegs:$val),
"swap [$addr], $dst",