Index: src/mips64/assembler-mips64.cc |
diff --git a/src/mips64/assembler-mips64.cc b/src/mips64/assembler-mips64.cc |
index 2653f4ac33999c1abb59ad60165c16af9fbdc72c..f38419d677d456516b5b50d0eb5ef69fe2ec914b 100644 |
--- a/src/mips64/assembler-mips64.cc |
+++ b/src/mips64/assembler-mips64.cc |
@@ -2117,11 +2117,10 @@ void Assembler::movf(Register rd, Register rs, uint16_t cc) { |
} |
-void Assembler::sel(SecondaryField fmt, FPURegister fd, |
- FPURegister ft, FPURegister fs, uint8_t sel) { |
+void Assembler::sel(SecondaryField fmt, FPURegister fd, FPURegister fs, |
+ FPURegister ft) { |
DCHECK(kArchVariant == kMips64r6); |
- DCHECK(fmt == D); |
- DCHECK(fmt == S); |
+ DCHECK((fmt == D) || (fmt == S)); |
Instr instr = COP1 | fmt << kRsShift | ft.code() << kFtShift | |
fs.code() << kFsShift | fd.code() << kFdShift | SEL; |
@@ -2129,31 +2128,47 @@ void Assembler::sel(SecondaryField fmt, FPURegister fd, |
} |
+void Assembler::max(SecondaryField fmt, FPURegister fd, FPURegister fs, |
+ FPURegister ft) { |
+ DCHECK(kArchVariant == kMips64r6); |
+ DCHECK((fmt == D) || (fmt == S)); |
+ GenInstrRegister(COP1, fmt, ft, fs, fd, MAX); |
+} |
+ |
+ |
+void Assembler::min(SecondaryField fmt, FPURegister fd, FPURegister fs, |
+ FPURegister ft) { |
+ DCHECK(kArchVariant == kMips64r6); |
+ DCHECK((fmt == D) || (fmt == S)); |
+ GenInstrRegister(COP1, fmt, ft, fs, fd, MIN); |
+} |
+ |
+ |
// GPR. |
-void Assembler::seleqz(Register rs, Register rt, Register rd) { |
+void Assembler::seleqz(Register rd, Register rs, Register rt) { |
DCHECK(kArchVariant == kMips64r6); |
GenInstrRegister(SPECIAL, rs, rt, rd, 0, SELEQZ_S); |
} |
// FPR. |
-void Assembler::seleqz(SecondaryField fmt, FPURegister fd, |
- FPURegister ft, FPURegister fs) { |
+void Assembler::seleqz(SecondaryField fmt, FPURegister fd, FPURegister fs, |
+ FPURegister ft) { |
DCHECK((fmt == D) || (fmt == S)); |
GenInstrRegister(COP1, fmt, ft, fs, fd, SELEQZ_C); |
} |
// GPR. |
-void Assembler::selnez(Register rs, Register rt, Register rd) { |
+void Assembler::selnez(Register rd, Register rs, Register rt) { |
DCHECK(kArchVariant == kMips64r6); |
GenInstrRegister(SPECIAL, rs, rt, rd, 0, SELNEZ_S); |
} |
// FPR. |
-void Assembler::selnez(SecondaryField fmt, FPURegister fd, |
- FPURegister ft, FPURegister fs) { |
+void Assembler::selnez(SecondaryField fmt, FPURegister fd, FPURegister fs, |
+ FPURegister ft) { |
DCHECK(kArchVariant == kMips64r6); |
DCHECK((fmt == D) || (fmt == S)); |
GenInstrRegister(COP1, fmt, ft, fs, fd, SELNEZ_C); |
@@ -2459,14 +2474,6 @@ void Assembler::ceil_l_d(FPURegister fd, FPURegister fs) { |
} |
-void Assembler::min(SecondaryField fmt, FPURegister fd, FPURegister ft, |
- FPURegister fs) { |
- DCHECK(kArchVariant == kMips64r6); |
- DCHECK((fmt == D) || (fmt == S)); |
- GenInstrRegister(COP1, fmt, ft, fs, fd, MIN); |
-} |
- |
- |
void Assembler::mina(SecondaryField fmt, FPURegister fd, FPURegister ft, |
FPURegister fs) { |
DCHECK(kArchVariant == kMips64r6); |
@@ -2475,14 +2482,6 @@ void Assembler::mina(SecondaryField fmt, FPURegister fd, FPURegister ft, |
} |
-void Assembler::max(SecondaryField fmt, FPURegister fd, FPURegister ft, |
- FPURegister fs) { |
- DCHECK(kArchVariant == kMips64r6); |
- DCHECK((fmt == D) || (fmt == S)); |
- GenInstrRegister(COP1, fmt, ft, fs, fd, MAX); |
-} |
- |
- |
void Assembler::maxa(SecondaryField fmt, FPURegister fd, FPURegister ft, |
FPURegister fs) { |
DCHECK(kArchVariant == kMips64r6); |