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:
Reed Kotler
2013-09-21 01:37:52 +00:00
parent a9baf1ecfd
commit ed7fd711a1
2 changed files with 23 additions and 1 deletions

View File

@@ -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);