mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-24 22:24:54 +00:00
Set .reorder for the stub so that gas takes care of delay slot processing.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -441,8 +441,10 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV,
|
||||
IAH.Out(".reloc 0,R_MIPS_NONE," + Name);
|
||||
IAH.Out("la $$25," + LocalName);
|
||||
}
|
||||
else
|
||||
else {
|
||||
IAH.Out(".set reorder");
|
||||
IAH.Out("la $$25, " + Name);
|
||||
}
|
||||
swapFPIntParams(PV, M, IAH, LE, false);
|
||||
IAH.Out("jr $$25");
|
||||
IAH.Out(LocalName + " = " + Name);
|
||||
|
Reference in New Issue
Block a user