diff options
author | Reed Kotler <rkotler@mips.com> | 2013-09-25 20:58:50 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-09-25 20:58:50 +0000 |
commit | 55d016886cc695aa14dfa3cc8b9e1d602cca149c (patch) | |
tree | 06d6093847cf00cb57d979dce0744f263384211e /lib/Target/Mips/Mips16HardFloat.cpp | |
parent | 2ce3ac8dd8c8e43f0a1a4db1a11f452b087ca24d (diff) | |
download | llvm-55d016886cc695aa14dfa3cc8b9e1d602cca149c.tar.gz llvm-55d016886cc695aa14dfa3cc8b9e1d602cca149c.tar.bz2 llvm-55d016886cc695aa14dfa3cc8b9e1d602cca149c.tar.xz |
Fix a bad typo in the inline assembly code for mips16 pic fp stubs
and make one cosmetic cleanup to make it look the same as gcc
in this area; adjusting test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191400 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Mips/Mips16HardFloat.cpp')
-rw-r--r-- | lib/Target/Mips/Mips16HardFloat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/Mips/Mips16HardFloat.cpp b/lib/Target/Mips/Mips16HardFloat.cpp index 14a942490f..4d728bdfc6 100644 --- a/lib/Target/Mips/Mips16HardFloat.cpp +++ b/lib/Target/Mips/Mips16HardFloat.cpp @@ -421,7 +421,7 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV, std::string Name = F->getName(); std::string SectionName = ".mips16.fn." + Name; std::string StubName = "__fn_stub_" + Name; - std::string LocalName = "__fn_local_" + Name; + std::string LocalName = "$$__fn_local_" + Name; Function *FStub = Function::Create (F->getFunctionType(), Function::InternalLinkage, StubName, M); @@ -436,14 +436,14 @@ static void createFPFnStub(Function *F, Module *M, FPParamVariant PV, IAH.Out(" .set macro"); if (PicMode) { IAH.Out(".set noreorder"); - IAH.Out(".cpload $$2"); + IAH.Out(".cpload $$25"); IAH.Out(".set reorder"); IAH.Out(".reloc 0,R_MIPS_NONE," + Name); IAH.Out("la $$25," + LocalName); } else { IAH.Out(".set reorder"); - IAH.Out("la $$25, " + Name); + IAH.Out("la $$25," + Name); } swapFPIntParams(PV, M, IAH, LE, false); IAH.Out("jr $$25"); |