Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 8d1bc412fc2bb8dc2c955b7385bff21bdd7fd885..dce2fd7ff31faacd3bc710142005d52306f90473 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -2483,55 +2483,71 @@ void Assembler::rint_d(FPURegister fd, FPURegister fs) { rint(D, fd, fs); } |
void Assembler::cvt_l_s(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, S, f0, fs, fd, CVT_L_S); |
} |
void Assembler::cvt_l_d(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, D, f0, fs, fd, CVT_L_D); |
} |
void Assembler::trunc_l_s(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, S, f0, fs, fd, TRUNC_L_S); |
} |
void Assembler::trunc_l_d(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, D, f0, fs, fd, TRUNC_L_D); |
} |
void Assembler::round_l_s(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, S, f0, fs, fd, ROUND_L_S); |
} |
void Assembler::round_l_d(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, D, f0, fs, fd, ROUND_L_D); |
} |
void Assembler::floor_l_s(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, S, f0, fs, fd, FLOOR_L_S); |
} |
void Assembler::floor_l_d(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, D, f0, fs, fd, FLOOR_L_D); |
} |
void Assembler::ceil_l_s(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, S, f0, fs, fd, CEIL_L_S); |
} |
void Assembler::ceil_l_d(FPURegister fd, FPURegister fs) { |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, D, f0, fs, fd, CEIL_L_D); |
} |
@@ -2626,7 +2642,8 @@ void Assembler::cvt_s_w(FPURegister fd, FPURegister fs) { |
void Assembler::cvt_s_l(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, L, f0, fs, fd, CVT_S_L); |
} |
@@ -2642,7 +2659,8 @@ void Assembler::cvt_d_w(FPURegister fd, FPURegister fs) { |
void Assembler::cvt_d_l(FPURegister fd, FPURegister fs) { |
- DCHECK(IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)); |
+ DCHECK((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
+ IsFp64Mode()); |
GenInstrRegister(COP1, L, f0, fs, fd, CVT_D_L); |
} |