mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 01:14:12 +00:00
Fix order of operands for copytoreg node when emitting calls. This fixes
Olden/msFix order of operands for copytoreg node when emitting calls. This fixes Olden/mstt. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
dfd58709cc
commit
2a06a5ef36
@ -1457,7 +1457,7 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
||||
|
||||
// Copy the callee address into R12 on darwin.
|
||||
SDOperand R12 = CurDAG->getRegister(PPC::R12, MVT::i32);
|
||||
Chain = CurDAG->getNode(ISD::CopyToReg, MVT::Other, R12, Callee, Chain);
|
||||
Chain = CurDAG->getNode(ISD::CopyToReg, MVT::Other, Chain, R12, Callee);
|
||||
|
||||
CallOperands.push_back(getI32Imm(20)); // Information to encode indcall
|
||||
CallOperands.push_back(getI32Imm(0)); // Information to encode indcall
|
||||
|
Loading…
Reference in New Issue
Block a user