diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2010-06-26 04:36:50 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2010-06-26 04:36:50 +0000 |
commit | 8cfa7713e95c3b2c7a82b22e810b8c50839d85e7 (patch) | |
tree | dab0eefc3cf139568856fcc03934a11a3f38c2dc | |
parent | c72da6bb56e464156eb58a16867c775b586cb261 (diff) | |
download | bcm5719-llvm-8cfa7713e95c3b2c7a82b22e810b8c50839d85e7.tar.gz bcm5719-llvm-8cfa7713e95c3b2c7a82b22e810b8c50839d85e7.zip |
Followup to r106770: actually generate SXTB and SXTH for sign-extensions.
llvm-svn: 106940
-rw-r--r-- | llvm/lib/Target/ARM/ARMISelLowering.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp index d7648b3ad26..6dfb606d1a3 100644 --- a/llvm/lib/Target/ARM/ARMISelLowering.cpp +++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp @@ -459,11 +459,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM) setOperationAction(ISD::ATOMIC_LOAD_XOR, MVT::i64, Expand); setOperationAction(ISD::ATOMIC_LOAD_NAND, MVT::i64, Expand); - // 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->hasV6Ops() - || (Subtarget->isThumb2() && !Subtarget->hasT2ExtractPack())) { + // Requires SXTB/SXTH, available on v6 and up in both ARM and Thumb modes. + if (!Subtarget->hasV6Ops()) { setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand); setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand); } |