Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index c26a8514bb1d35ee43df5efa6c088b599874ece3..7249f77e4be56378cdb22a4eceb4b8a005964094 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -1920,6 +1920,34 @@ void Assembler::movf(Register rd, Register rs, uint16_t cc) { |
} |
+void Assembler::seleqz(Register rs, Register rt, Register rd) { |
+ DCHECK(IsMipsArchVariant(kMips32r6)); |
+ GenInstrRegister(SPECIAL, rs, rt, rd, 0, SELEQZ_S); |
+} |
+ |
+ |
+void Assembler::seleqz(SecondaryField fmt, FPURegister fd, FPURegister ft, |
+ FPURegister fs) { |
+ DCHECK(IsMipsArchVariant(kMips32r6)); |
+ DCHECK((fmt == D) || (fmt == S)); |
+ GenInstrRegister(COP1, fmt, ft, fs, fd, SELEQZ_C); |
+} |
+ |
+ |
+void Assembler::selnez(Register rs, Register rt, Register rd) { |
+ DCHECK(IsMipsArchVariant(kMips32r6)); |
+ GenInstrRegister(SPECIAL, rs, rt, rd, 0, SELNEZ_S); |
+} |
+ |
+ |
+void Assembler::selnez(SecondaryField fmt, FPURegister fd, FPURegister ft, |
+ FPURegister fs) { |
+ DCHECK(IsMipsArchVariant(kMips32r6)); |
+ DCHECK((fmt == D) || (fmt == S)); |
+ GenInstrRegister(COP1, fmt, ft, fs, fd, SELNEZ_C); |
+} |
+ |
+ |
// Bit twiddling. |
void Assembler::clz(Register rd, Register rs) { |
if (!IsMipsArchVariant(kMips32r6)) { |