Index: src/x64/assembler-x64.h |
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h |
index 2182dbb3ff6b1452792bd58052e9a6f61cc2c382..a08f73a0725b3a3f1f0918f47a411c3a2d07316c 100644 |
--- a/src/x64/assembler-x64.h |
+++ b/src/x64/assembler-x64.h |
@@ -1136,6 +1136,7 @@ class Assembler : public AssemblerBase { |
void pinsrd(XMMRegister dst, Register src, int8_t imm8); |
void pinsrd(XMMRegister dst, const Operand& src, int8_t imm8); |
+ void roundss(XMMRegister dst, XMMRegister src, RoundingMode mode); |
void roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode); |
// AVX instruction |
@@ -1407,6 +1408,11 @@ class Assembler : public AssemblerBase { |
void vucomisd(XMMRegister dst, const Operand& src) { |
vsd(0x2e, dst, xmm0, src, k66, k0F, kWIG); |
} |
+ void vroundss(XMMRegister dst, XMMRegister src1, XMMRegister src2, |
+ RoundingMode mode) { |
+ vsd(0x0a, dst, src1, src2, k66, k0F3A, kWIG); |
+ emit(static_cast<byte>(mode) | 0x8); // Mask precision exception. |
+ } |
void vroundsd(XMMRegister dst, XMMRegister src1, XMMRegister src2, |
RoundingMode mode) { |
vsd(0x0b, dst, src1, src2, k66, k0F3A, kWIG); |