[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
Nate Begeman
natebegeman at mac.com
Tue Nov 23 13:37:33 PST 2004
Changes in directory llvm/lib/Target/PowerPC:
PPC32JITInfo.cpp updated: 1.5 -> 1.6
---
Log message:
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.
---
Diffs of the changes: (+2 -2)
Index: llvm/lib/Target/PowerPC/PPC32JITInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPC32JITInfo.cpp:1.5 llvm/lib/Target/PowerPC/PPC32JITInfo.cpp:1.6
--- llvm/lib/Target/PowerPC/PPC32JITInfo.cpp:1.5 Tue Nov 23 15:34:18 2004
+++ llvm/lib/Target/PowerPC/PPC32JITInfo.cpp Tue Nov 23 15:37:22 2004
@@ -61,7 +61,7 @@
"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 @@
"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
}
More information about the llvm-commits
mailing list