MulOp is actually a Mips specific node, so do the match using Opcode. This fixes PR6192

llvm-svn: 94977
This commit is contained in:
Bruno Cardoso Lopes 2010-02-01 12:16:39 +00:00
parent d41dacdcbf
commit aa8c429a53
1 changed files with 1 additions and 1 deletions

View File

@ -426,7 +426,7 @@ SDNode* MipsDAGToDAGISel::Select(SDNode *Node) {
SDValue InFlag = SDValue(MulNode, 0);
if (MulOp == ISD::MUL)
if (Opcode == ISD::MUL)
return CurDAG->getMachineNode(Mips::MFLO, dl, MVT::i32, InFlag);
else
return CurDAG->getMachineNode(Mips::MFHI, dl, MVT::i32, InFlag);