Index: src/x64/assembler-x64.h |
diff --git a/src/x64/assembler-x64.h b/src/x64/assembler-x64.h |
index af27b369653b52945ab190c56cce68a143a87e0e..371a6770f88c40d170583a63d9f7f5d42800d2d4 100644 |
--- a/src/x64/assembler-x64.h |
+++ b/src/x64/assembler-x64.h |
@@ -1381,6 +1381,11 @@ class Assembler : public AssemblerBase { |
void vucomisd(XMMRegister dst, const Operand& src) { |
vsd(0x2e, dst, xmm0, src, k66, k0F, kWIG); |
} |
+ void vroundsd(XMMRegister dst, XMMRegister src1, XMMRegister src2, |
+ RoundingMode mode) { |
+ vsd(0x0b, dst, src1, src2, k66, k0F3A, kWIG); |
+ emit(static_cast<byte>(mode) | 0x8); // Mask precision exception. |
+ } |
void vsd(byte op, XMMRegister dst, XMMRegister src1, XMMRegister src2) { |
vsd(op, dst, src1, src2, kF2, k0F, kWIG); |