mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Darwin runtime library does not have these.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36505 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
768c9f725b
commit
b1df8f2750
@ -38,8 +38,13 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
: TargetLowering(TM), ARMPCLabelIndex(0) {
|
||||
Subtarget = &TM.getSubtarget<ARMSubtarget>();
|
||||
|
||||
if (Subtarget->isTargetDarwin()) {
|
||||
// Don't have these.
|
||||
setLibcallName(RTLIB::UINTTOFP_I64_F32, NULL);
|
||||
setLibcallName(RTLIB::UINTTOFP_I64_F64, NULL);
|
||||
|
||||
// Uses VFP for Thumb libfuncs if available.
|
||||
if (!UseSoftFloat && Subtarget->isThumb() && Subtarget->hasVFP2()) {
|
||||
if (Subtarget->isThumb() && Subtarget->hasVFP2()) {
|
||||
// Single-precision floating-point arithmetic.
|
||||
setLibcallName(RTLIB::ADD_F32, "__addsf3vfp");
|
||||
setLibcallName(RTLIB::SUB_F32, "__subsf3vfp");
|
||||
@ -112,6 +117,7 @@ ARMTargetLowering::ARMTargetLowering(TargetMachine &TM)
|
||||
setLibcallName(RTLIB::SINTTOFP_I32_F32, "__floatsisfvfp");
|
||||
setLibcallName(RTLIB::UINTTOFP_I32_F32, "__floatunssisfvfp");
|
||||
}
|
||||
}
|
||||
|
||||
addRegisterClass(MVT::i32, ARM::GPRRegisterClass);
|
||||
if (!UseSoftFloat && Subtarget->hasVFP2() && !Subtarget->isThumb()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user