summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp')
-rw-r--r--llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index 65afb3650f8..c8313240a67 100644
--- a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -129,9 +129,9 @@ void MipsSEDAGToDAGISel::emitMCountABI(MachineInstr &MI, MachineBasicBlock &MBB,
MachineInstrBuilder MIB(MF, &MI);
if (!Subtarget->isABI_O32()) { // N32, N64
// Save current return address.
- BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Mips::OR))
+ BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Mips::OR64))
.addDef(Mips::AT_64)
- .addUse(Mips::RA_64)
+ .addUse(Mips::RA_64, RegState::Undef)
.addUse(Mips::ZERO_64);
// Stops instruction above from being removed later on.
MIB.addUse(Mips::AT_64, RegState::Implicit);
@@ -139,7 +139,7 @@ void MipsSEDAGToDAGISel::emitMCountABI(MachineInstr &MI, MachineBasicBlock &MBB,
// Save current return address.
BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Mips::OR))
.addDef(Mips::AT)
- .addUse(Mips::RA)
+ .addUse(Mips::RA, RegState::Undef)
.addUse(Mips::ZERO);
// _mcount pops 2 words from stack.
BuildMI(MBB, &MI, MI.getDebugLoc(), TII->get(Mips::ADDiu))
OpenPOWER on IntegriCloud