mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-29 22:52:18 +00:00
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
This commit is contained in:
parent
ca6d0f53ff
commit
65b7f3ed2a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user