Skip to content
This repository has been archived by the owner on Dec 20, 2019. It is now read-only.

Commit

Permalink
Merge pull request #17 from lewurm/armv5-fix
Browse files Browse the repository at this point in the history
[mono] respect FloatABIType, so it will work on armv5
  • Loading branch information
vargaz committed Nov 8, 2018
2 parents c975102 + a864c60 commit 76f65d6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/Target/ARM/ARMISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1623,13 +1623,14 @@ CCAssignFn *ARMTargetLowering::CCAssignFnForNode(CallingConv::ID CC,
if (Return) {
return CCAssignFnForNode(CallingConv::C, true, isVarArg);
} else {
if (Subtarget->isAAPCS_ABI()) {
if (Subtarget->hasVFP2() && !Subtarget->isThumb1Only() && !isVarArg)
return CC_ARM_Mono_AAPCS_VFP;
else
return CC_ARM_Mono_AAPCS;
} else
return CC_ARM_Mono_APCS;
if (!Subtarget->isAAPCS_ABI())
return CC_ARM_Mono_APCS;
else if (Subtarget->hasVFP2() && !Subtarget->isThumb1Only() &&
getTargetMachine().Options.FloatABIType == FloatABI::Hard &&
!isVarArg)
return CC_ARM_Mono_AAPCS_VFP;
else
return CC_ARM_Mono_AAPCS;
}
}
}
Expand Down

0 comments on commit 76f65d6

Please sign in to comment.