summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-04-27 22:17:18 +0000
committerDale Johannesen <dalej@apple.com>2007-04-27 22:17:18 +0000
commit29c05756b5a487816b04ba0b3dfccfe93093f5c3 (patch)
tree1d926d2a1ca497c118773a6614092eba05c782c4 /llvm/lib
parent940b083a63d576fe3256be9767b538f63bdf0adc (diff)
downloadbcm5719-llvm-29c05756b5a487816b04ba0b3dfccfe93093f5c3.tar.gz
bcm5719-llvm-29c05756b5a487816b04ba0b3dfccfe93093f5c3.zip
Prevent Thumb code from generating ARM instructions
llvm-svn: 36518
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMInstrInfo.td6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrInfo.td b/llvm/lib/Target/ARM/ARMInstrInfo.td
index 22665e71e91..4293d1a4be7 100644
--- a/llvm/lib/Target/ARM/ARMInstrInfo.td
+++ b/llvm/lib/Target/ARM/ARMInstrInfo.td
@@ -1124,11 +1124,11 @@ def : ARMPat<(extloadi8 addrmode2:$addr), (LDRB addrmode2:$addr)>;
def : ARMPat<(extloadi16 addrmode3:$addr), (LDRH addrmode3:$addr)>;
// truncstore i1 -> truncstore i8
-def : Pat<(truncstorei1 GPR:$src, addrmode2:$dst),
+def : ARMPat<(truncstorei1 GPR:$src, addrmode2:$dst),
(STRB GPR:$src, addrmode2:$dst)>;
-def : Pat<(pre_truncsti1 GPR:$src, GPR:$base, am2offset:$offset),
+def : ARMPat<(pre_truncsti1 GPR:$src, GPR:$base, am2offset:$offset),
(STRB_PRE GPR:$src, GPR:$base, am2offset:$offset)>;
-def : Pat<(post_truncsti1 GPR:$src, GPR:$base, am2offset:$offset),
+def : ARMPat<(post_truncsti1 GPR:$src, GPR:$base, am2offset:$offset),
(STRB_POST GPR:$src, GPR:$base, am2offset:$offset)>;
// smul* and smla*
OpenPOWER on IntegriCloud