summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-06-21 21:27:34 +0000
committerBob Wilson <bob.wilson@apple.com>2010-06-21 21:27:34 +0000
commit72df24037e0f628c01c5f421ba32dfc260ec26be (patch)
treeced180aba6b07c923f6f5bd168da56722e10fdb5 /llvm/lib/Target/ARM
parent523e554afa6763d84f2d503859fdd3a64b069a23 (diff)
downloadbcm5719-llvm-72df24037e0f628c01c5f421ba32dfc260ec26be.tar.gz
bcm5719-llvm-72df24037e0f628c01c5f421ba32dfc260ec26be.zip
sign_extend_inreg needs to be expanded for pre-v6 Thumb as well as ARM.
Radar 8104310. llvm-svn: 106484
Diffstat (limited to 'llvm/lib/Target/ARM')
-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 333907c4fb8..7f89b2d1685 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -455,7 +455,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
// If the subtarget does not have extract instructions, sign_extend_inreg
// needs to be expanded. Extract is available in ARM mode on v6 and up,
// and on most Thumb2 implementations.
- if ((!Subtarget->isThumb() && !Subtarget->hasV6Ops())
+ if (!Subtarget->hasV6Ops()
|| (Subtarget->isThumb2() && !Subtarget->hasT2ExtractPack())) {
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand);
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand);
OpenPOWER on IntegriCloud