From 55d016886cc695aa14dfa3cc8b9e1d602cca149c Mon Sep 17 00:00:00 2001 From: Reed Kotler Date: Wed, 25 Sep 2013 20:58:50 +0000 Subject: 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 --- lib/Target/Mips/Mips16HardFloat.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Target/Mips/Mips16HardFloat.cpp') diff --git a/lib/Target/Mips/Mips16HardFloat.cpp b/lib/Target/Mips/Mips16HardFloat.cpp index 14a9424..4d728bd 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"); -- cgit v1.1