Skip to content
Snippets Groups Projects
Commit aa8c429a authored by Bruno Cardoso Lopes's avatar Bruno Cardoso Lopes
Browse files

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

llvm-svn: 94977
parent d41dacdc
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment