mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-25 10:27:04 +00:00
Add LLVM support for Swift.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164899 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -635,9 +635,9 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
if (!Subtarget->hasV6Ops())
|
||||
setOperationAction(ISD::BSWAP, MVT::i32, Expand);
|
||||
|
||||
// These are expanded into libcalls.
|
||||
if (!Subtarget->hasDivide() || !Subtarget->isThumb2()) {
|
||||
// v7M has a hardware divider
|
||||
if (!(Subtarget->hasDivide() && Subtarget->isThumb2()) &&
|
||||
!(Subtarget->hasDivideInARMMode() && !Subtarget->isThumb())) {
|
||||
// These are expanded into libcalls if the cpu doesn't have HW divider.
|
||||
setOperationAction(ISD::SDIV, MVT::i32, Expand);
|
||||
setOperationAction(ISD::UDIV, MVT::i32, Expand);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user