summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2011-07-26 17:11:05 +0000
committerJim Grosbach <grosbach@apple.com>2011-07-26 17:11:05 +0000
commitdbc1c5479e20d4e8fdc14dec06c42bb579dd7621 (patch)
treedbcd26313fd75446d3d060868a0e2e72fa6eec9b
parenteab1c0d09c2f22506cf37f38880d0c03732f9c99 (diff)
downloadbcm5719-llvm-dbc1c5479e20d4e8fdc14dec06c42bb579dd7621.tar.gz
bcm5719-llvm-dbc1c5479e20d4e8fdc14dec06c42bb579dd7621.zip
ARM SWP instructions store, too, not just load.
llvm-svn: 136096
-rw-r--r--llvm/lib/Target/ARM/ARMInstrInfo.td8
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td
index 2b685cfcaeb..c3b11442d30 100644
--- a/llvm/lib/Target/ARM/ARMInstrInfo.td
+++ b/llvm/lib/Target/ARM/ARMInstrInfo.td
@@ -3660,11 +3660,9 @@ def CLREX : AXI<(outs), (ins), MiscFrm, NoItinerary, "clrex",
}
// SWP/SWPB are deprecated in V6/V7 and for disassembly only.
-let mayLoad = 1 in {
-def SWP : AIswp<0, (outs GPR:$Rt), (ins GPR:$Rt2, GPR:$Rn), "swp",
- [/* For disassembly only; pattern left blank */]>;
-def SWPB : AIswp<1, (outs GPR:$Rt), (ins GPR:$Rt2, GPR:$Rn), "swpb",
- [/* For disassembly only; pattern left blank */]>;
+let mayLoad = 1, mayStore = 1 in {
+def SWP : AIswp<0, (outs GPR:$Rt), (ins GPR:$Rt2, GPR:$Rn), "swp", []>;
+def SWPB : AIswp<1, (outs GPR:$Rt), (ins GPR:$Rt2, GPR:$Rn), "swpb", []>;
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud