Index: test/cctest/test-assembler-x64.cc |
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc |
index e18ae7109d35e6578173f58dbaba3e102ebe6ca7..00d36097d08efc3a6aabd19f96c3f09e341ef896 100644 |
--- a/test/cctest/test-assembler-x64.cc |
+++ b/test/cctest/test-assembler-x64.cc |
@@ -2296,4 +2296,24 @@ TEST(AssemblerX64JumpTables2) { |
} |
} |
+TEST(AssemblerX64PslldWithXmm15) { |
+ CcTest::InitializeVM(); |
+ // Allocate an executable page of memory. |
+ size_t actual_size; |
+ byte* buffer = static_cast<byte*>(v8::base::OS::Allocate( |
+ Assembler::kMinimalBufferSize, &actual_size, true)); |
+ CHECK(buffer); |
+ Assembler assm(CcTest::i_isolate(), buffer, static_cast<int>(actual_size)); |
+ |
+ __ movq(xmm15, arg1); |
+ __ pslld(xmm15, 1); |
+ __ movq(rax, xmm15); |
+ __ ret(0); |
+ |
+ CodeDesc desc; |
+ assm.GetCode(&desc); |
+ uint64_t result = FUNCTION_CAST<F5>(buffer)(V8_UINT64_C(0x1122334455667788)); |
+ CHECK_EQ(V8_UINT64_C(0x22446688aaccef10), result); |
+} |
+ |
#undef __ |