aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-03 00:08:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-03 00:08:19 +0000
commitd72edde77d9576ac77449a57255593fa8281ccbb (patch)
tree01ce9ccf539bb13e6cd1ca2b80c4e54b7b716db9 /lib
parent24f87d81329942fe94010c943b0d1c8e45568b4c (diff)
downloadexternal_llvm-d72edde77d9576ac77449a57255593fa8281ccbb.zip
external_llvm-d72edde77d9576ac77449a57255593fa8281ccbb.tar.gz
external_llvm-d72edde77d9576ac77449a57255593fa8281ccbb.tar.bz2
t2LDR_PRE etc are loads.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/ARMInstrThumb2.td2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMInstrThumb2.td b/lib/Target/ARM/ARMInstrThumb2.td
index 2b9c9d4..d8ce1b3 100644
--- a/lib/Target/ARM/ARMInstrThumb2.td
+++ b/lib/Target/ARM/ARMInstrThumb2.td
@@ -546,6 +546,7 @@ def : T2Pat<(extloadi16 (ARMWrapper tconstpool:$addr)),
(t2LDRHpci tconstpool:$addr)>;
// Indexed loads
+let mayLoad = 1 in {
def t2LDR_PRE : T2Iidxldst<(outs GPR:$dst, GPR:$base_wb),
(ins t2addrmode_imm8:$addr),
AddrModeT2_i8, IndexModePre,
@@ -601,6 +602,7 @@ def t2LDRSH_POST : T2Iidxldst<(outs GPR:$dst, GPR:$base_wb),
AddrModeT2_i8, IndexModePost,
"ldrsh", " $dst, [$base], $offset", "$base = $base_wb",
[]>;
+}
// Store
defm t2STR : T2I_st<"str", BinOpFrag<(store node:$LHS, node:$RHS)>>;