Don't emit "32" for unordered comparison

llvm-svn: 24073
This commit is contained in:
Chris Lattner 2005-10-28 22:58:07 +00:00
parent 7ad0bed89f
commit 7ca53a5783
1 changed files with 4 additions and 2 deletions

View File

@ -722,11 +722,13 @@ SDOperand PPCDAGToDAGISel::SelectSETCC(SDOperand Op) {
if (!Inv) {
CurDAG->SelectNodeTo(N, PPC::RLWINM, MVT::i32, IntCR,
getI32Imm(32-(3-Idx)), getI32Imm(31), getI32Imm(31));
getI32Imm((32-(3-Idx)) & 31),
getI32Imm(31), getI32Imm(31));
} else {
SDOperand Tmp =
CurDAG->getTargetNode(PPC::RLWINM, MVT::i32, IntCR,
getI32Imm(32-(3-Idx)), getI32Imm(31),getI32Imm(31));
getI32Imm((32-(3-Idx)) & 31),
getI32Imm(31),getI32Imm(31));
CurDAG->SelectNodeTo(N, PPC::XORI, MVT::i32, Tmp, getI32Imm(1));
}