Index: src/x64/assembler-x64.cc |
diff --git a/src/x64/assembler-x64.cc b/src/x64/assembler-x64.cc |
index 85c0228a7453cbac736f34e5c6139c7e2d6cbd27..e26719664574636446f6d9115647f2b54fbafcf5 100644 |
--- a/src/x64/assembler-x64.cc |
+++ b/src/x64/assembler-x64.cc |
@@ -3228,28 +3228,33 @@ void Assembler::cmpps(XMMRegister dst, XMMRegister src, int8_t cmp) { |
emit(cmp); |
} |
-void Assembler::cmpeqps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x0); |
-} |
- |
-void Assembler::cmpltps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x1); |
-} |
- |
-void Assembler::cmpleps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x2); |
-} |
- |
-void Assembler::cmpneqps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x4); |
+void Assembler::cmpps(XMMRegister dst, const Operand& src, int8_t cmp) { |
+ EnsureSpace ensure_space(this); |
+ emit_optional_rex_32(dst, src); |
+ emit(0x0F); |
+ emit(0xC2); |
+ emit_sse_operand(dst, src); |
+ emit(cmp); |
} |
-void Assembler::cmpnltps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x5); |
+void Assembler::cmppd(XMMRegister dst, XMMRegister src, int8_t cmp) { |
+ EnsureSpace ensure_space(this); |
+ emit_optional_rex_32(dst, src); |
+ emit(0x66); |
+ emit(0x0F); |
+ emit(0xC2); |
+ emit_sse_operand(dst, src); |
+ emit(cmp); |
} |
-void Assembler::cmpnleps(XMMRegister dst, XMMRegister src) { |
- cmpps(dst, src, 0x6); |
+void Assembler::cmppd(XMMRegister dst, const Operand& src, int8_t cmp) { |
+ EnsureSpace ensure_space(this); |
+ emit_optional_rex_32(dst, src); |
+ emit(0x66); |
+ emit(0x0F); |
+ emit(0xC2); |
+ emit_sse_operand(dst, src); |
+ emit(cmp); |
} |
void Assembler::cvttss2si(Register dst, const Operand& src) { |