Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 0afe5157d6742c1128162dcb0ab2842f872d0173..d127b81a54440d7918a9727195558b285e46f30c 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -1396,7 +1396,7 @@ void MacroAssembler::Trunc_uw_d(FPURegister fd, |
void MacroAssembler::Mthc1(Register rt, FPURegister fs) { |
- if (IsFp64Mode()) { |
+ if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { |
mthc1(rt, fs); |
} else { |
mtc1(rt, fs.high()); |
@@ -1405,7 +1405,7 @@ void MacroAssembler::Mthc1(Register rt, FPURegister fs) { |
void MacroAssembler::Mfhc1(Register rt, FPURegister fs) { |
- if (IsFp64Mode()) { |
+ if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { |
mfhc1(rt, fs); |
} else { |
mfc1(rt, fs.high()); |