mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-17 05:31:32 +00:00
Implement a bastardized ABI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155686 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97a454317a
commit
afb3b5ebe6
@ -62,12 +62,14 @@ ARMBaseRegisterInfo::ARMBaseRegisterInfo(const ARMBaseInstrInfo &tii,
|
||||
|
||||
const uint16_t*
|
||||
ARMBaseRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const {
|
||||
return (STI.isTargetIOS()) ? CSR_iOS_SaveList : CSR_AAPCS_SaveList;
|
||||
return (STI.isTargetIOS() && !STI.isAAPCS_ABI())
|
||||
? CSR_iOS_SaveList : CSR_AAPCS_SaveList;
|
||||
}
|
||||
|
||||
const uint32_t*
|
||||
ARMBaseRegisterInfo::getCallPreservedMask(CallingConv::ID) const {
|
||||
return (STI.isTargetIOS()) ? CSR_iOS_RegMask : CSR_AAPCS_RegMask;
|
||||
return (STI.isTargetIOS() && !STI.isAAPCS_ABI())
|
||||
? CSR_iOS_RegMask : CSR_AAPCS_RegMask;
|
||||
}
|
||||
|
||||
BitVector ARMBaseRegisterInfo::
|
||||
|
@ -103,7 +103,7 @@ ARMSubtarget::ARMSubtarget(const std::string &TT, const std::string &CPU,
|
||||
// After parsing Itineraries, set ItinData.IssueWidth.
|
||||
computeIssueWidth();
|
||||
|
||||
if (TT.find("eabi") != std::string::npos)
|
||||
if ((TT.find("eabi") != std::string::npos) || (isTargetIOS() && isMClass()))
|
||||
// FIXME: We might want to separate AAPCS and EABI. Some systems, e.g.
|
||||
// Darwin-EABI conforms to AACPS but not the rest of EABI.
|
||||
TargetABI = ARM_ABI_AAPCS;
|
||||
|
@ -18,7 +18,6 @@ entry:
|
||||
|
||||
; M3: t:
|
||||
; M3-NOT: ldrd
|
||||
; M3: ldm.w r2, {r2, r3}
|
||||
|
||||
%0 = load i64** @b, align 4
|
||||
%1 = load i64* %0, align 4
|
||||
|
Loading…
x
Reference in New Issue
Block a user