summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-07-03 01:43:10 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-07-03 01:43:10 +0000
commit0e8bde59107b4edfc44c139466e6d4f3edc63fda (patch)
treeec994018afb3acee7c74217f7008b86a3d2c4a3c /llvm/lib/Target/ARM/ARMISelLowering.cpp
parent1cd3fd633668491db87402d025bde9496c773ef4 (diff)
downloadbcm5719-llvm-0e8bde59107b4edfc44c139466e6d4f3edc63fda.tar.gz
bcm5719-llvm-0e8bde59107b4edfc44c139466e6d4f3edc63fda.zip
Add thumb2 sign / zero extend with rotate instructions.
llvm-svn: 74755
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 85cd2e13ce4..9f847bd834f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -303,7 +303,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand);
setOperationAction(ISD::MEMBARRIER, MVT::Other, Expand);
- if (!Subtarget->hasV6Ops()) {
+ if (!Subtarget->hasV6Ops() && !Subtarget->isThumb2()) {
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand);
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand);
}
OpenPOWER on IntegriCloud