From: Nate Begeman Date: Tue, 23 Nov 2004 21:37:22 +0000 (+0000) Subject: Use the correct register class as a constaint to gcc's inline assembly, so X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=65b7f3ed2af7450bb2cd22cd200c04d9493ddd65;p=oota-llvm.git Use the correct register class as a constaint to gcc's inline assembly, so that we don't end up trying to use r0 as a base register. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18176 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCJITInfo.cpp b/lib/Target/PowerPC/PPCJITInfo.cpp index 6bc74b229ae..b657a00b158 100644 --- a/lib/Target/PowerPC/PPCJITInfo.cpp +++ b/lib/Target/PowerPC/PPCJITInfo.cpp @@ -61,7 +61,7 @@ static void CompilationCallback() { "stfd f4, 24(%1)\n" "stfd f5, 32(%1)\n" "stfd f6, 40(%1)\n" "stfd f7, 48(%1)\n" "stfd f8, 56(%1)\n" "stfd f9, 64(%1)\n" "stfd f10, 72(%1)\n" "stfd f11, 80(%1)\n" "stfd f12, 88(%1)\n" - "stfd f13, 96(%1)\n" :: "r" (IntRegs), "r" (FPRegs) ); + "stfd f13, 96(%1)\n" :: "b" (IntRegs), "b" (FPRegs) ); #endif unsigned *CameFromStub = (unsigned*)__builtin_return_address(0); @@ -121,7 +121,7 @@ static void CompilationCallback() { "mtctr r0\n" // Put it into the CTR register "lwz r1,0(r1)\n" // Pop two frames off "bctr\n" :: // Return to stub! - "r" (FPRegs), "r" (IntRegs)); + "b" (FPRegs), "b" (IntRegs)); #endif }