forked from OSchip/llvm-project
MulOp is actually a Mips specific node, so do the match using Opcode. This fixes PR6192
llvm-svn: 94977
This commit is contained in:
parent
d41dacdcbf
commit
aa8c429a53
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue