mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 13:41:47 +00:00
Followup to r106770: actually generate SXTB and SXTH for sign-extensions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ccd9bcca14
commit
a2c6f457a4
@ -459,11 +459,8 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
|||||||
setOperationAction(ISD::ATOMIC_LOAD_XOR, MVT::i64, Expand);
|
setOperationAction(ISD::ATOMIC_LOAD_XOR, MVT::i64, Expand);
|
||||||
setOperationAction(ISD::ATOMIC_LOAD_NAND, MVT::i64, Expand);
|
setOperationAction(ISD::ATOMIC_LOAD_NAND, MVT::i64, Expand);
|
||||||
|
|
||||||
// If the subtarget does not have extract instructions, sign_extend_inreg
|
// Requires SXTB/SXTH, available on v6 and up in both ARM and Thumb modes.
|
||||||
// needs to be expanded. Extract is available in ARM mode on v6 and up,
|
if (!Subtarget->hasV6Ops()) {
|
||||||
// and on most Thumb2 implementations.
|
|
||||||
if (!Subtarget->hasV6Ops()
|
|
||||||
|| (Subtarget->isThumb2() && !Subtarget->hasT2ExtractPack())) {
|
|
||||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand);
|
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i16, Expand);
|
||||||
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand);
|
setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i8, Expand);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user