Index: test/cctest/test-assembler-x64.cc |
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc |
index 347b95e32e572ae8ccea2050a8dea22bc665ba0d..cc87c4ebf6eb91bbc5f59f8faf99f46bc8f50717 100644 |
--- a/test/cctest/test-assembler-x64.cc |
+++ b/test/cctest/test-assembler-x64.cc |
@@ -1516,6 +1516,14 @@ TEST(AssemblerX64AVX_sd) { |
__ vucomisd(xmm5, xmm6); |
__ j(not_equal, &exit); |
+ // Test vcvtsd2si |
+ __ movl(rax, Immediate(19)); |
+ __ movq(rdx, V8_UINT64_C(0x4018000000000000)); // 6.0 |
+ __ vmovq(xmm5, rdx); |
+ __ vcvtsd2si(rcx, xmm5); |
+ __ cmpl(rcx, Immediate(6)); |
+ __ j(not_equal, &exit); |
+ |
__ movq(rdx, V8_INT64_C(0x3ff0000000000000)); // 1.0 |
__ vmovq(xmm7, rdx); |
__ vmulsd(xmm1, xmm1, xmm7); |