mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 10:08:03 +00:00
MulOp is actually a Mips specific node, so do the match using Opcode. This fixes PR6192
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94977 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
746f5b6eb1
commit
9a720b0b0e
@ -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…
x
Reference in New Issue
Block a user