Index: src/ia32/assembler-ia32.cc |
diff --git a/src/ia32/assembler-ia32.cc b/src/ia32/assembler-ia32.cc |
index 59d00259396db5f2091dbf53692aba82528af4c4..4d5a316002bb88d7d1231d028a2f493b778b6884 100644 |
--- a/src/ia32/assembler-ia32.cc |
+++ b/src/ia32/assembler-ia32.cc |
@@ -2194,6 +2194,19 @@ void Assembler::ucomisd(XMMRegister dst, const Operand& src) { |
} |
+void Assembler::roundss(XMMRegister dst, XMMRegister src, RoundingMode mode) { |
+ DCHECK(IsEnabled(SSE4_1)); |
+ EnsureSpace ensure_space(this); |
+ EMIT(0x66); |
+ EMIT(0x0F); |
+ EMIT(0x3A); |
+ EMIT(0x0A); |
+ emit_sse_operand(dst, src); |
+ // Mask precision exeption. |
titzer
2015/11/25 10:33:25
s/exeption/exception/
|
+ EMIT(static_cast<byte>(mode) | 0x8); |
+} |
+ |
+ |
void Assembler::roundsd(XMMRegister dst, XMMRegister src, RoundingMode mode) { |
DCHECK(IsEnabled(SSE4_1)); |
EnsureSpace ensure_space(this); |