Use the correct register class as a constaint to gcc's inline assembly, so
authorNate Begeman <natebegeman@mac.com>
Tue, 23 Nov 2004 21:37:22 +0000 (21:37 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 23 Nov 2004 21:37:22 +0000 (21:37 +0000)
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

lib/Target/PowerPC/PPCJITInfo.cpp

index 6bc74b229ae879771fef807de64f516cbe46f738..b657a00b158b8d99824af26761e3972c65b0a3d7 100644 (file)
@@ -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
 }