forked from OSchip/llvm-project
parent
1cbbe1015a
commit
12357281b8
|
@ -1373,8 +1373,8 @@ SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
|
||||||
break;
|
break;
|
||||||
case ISD::SETNE: {
|
case ISD::SETNE: {
|
||||||
Op = CurDAG->getTargetNode(PPC::NOR, MVT::i32, Op, Op);
|
Op = CurDAG->getTargetNode(PPC::NOR, MVT::i32, Op, Op);
|
||||||
SDOperand AD = CurDAG->getTargetNode(PPC::ADDIC, MVT::i32, Op,
|
SDOperand AD = CurDAG->getTargetNode(PPC::ADDIC, MVT::i32, MVT::Flag,
|
||||||
getI32Imm(~0U));
|
Op, getI32Imm(~0U));
|
||||||
CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, AD, Op, AD.getValue(1));
|
CurDAG->SelectNodeTo(N, PPC::SUBFE, MVT::i32, AD, Op, AD.getValue(1));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue