mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
SUBFIC produces two results, not one.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23073 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6660cd65cf
commit
bb22df31d9
@ -1188,8 +1188,8 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
||||
SDOperand HI = Select(N->getOperand(0));
|
||||
SDOperand LO = Select(N->getOperand(1));
|
||||
SDOperand SH = Select(N->getOperand(2));
|
||||
SDOperand SH_LO_R = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, SH,
|
||||
getI32Imm(32));
|
||||
SDOperand SH_LO_R = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, MVT::Flag,
|
||||
SH, getI32Imm(32));
|
||||
SDOperand SH_LO_L = CurDAG->getTargetNode(PPC::ADDI, MVT::i32, SH,
|
||||
getI32Imm((unsigned)-32));
|
||||
SDOperand HI_SHL = CurDAG->getTargetNode(PPC::SLW, MVT::i32, HI, SH);
|
||||
@ -1207,8 +1207,8 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
||||
SDOperand HI = Select(N->getOperand(0));
|
||||
SDOperand LO = Select(N->getOperand(1));
|
||||
SDOperand SH = Select(N->getOperand(2));
|
||||
SDOperand SH_HI_L = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, SH,
|
||||
getI32Imm(32));
|
||||
SDOperand SH_HI_L = CurDAG->getTargetNode(PPC::SUBFIC, MVT::i32, MVT::Flag,
|
||||
SH, getI32Imm(32));
|
||||
SDOperand SH_HI_R = CurDAG->getTargetNode(PPC::ADDI, MVT::i32, SH,
|
||||
getI32Imm((unsigned)-32));
|
||||
SDOperand LO_SHR = CurDAG->getTargetNode(PPC::SRW, MVT::i32, LO, SH);
|
||||
|
Loading…
Reference in New Issue
Block a user