Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: test/cctest/test-assembler-x64.cc

Issue 1404903004: [x64] Use vcvtlsi2sd when AVX is enabled (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix the test on Win64 Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-assembler-x64.cc
diff --git a/test/cctest/test-assembler-x64.cc b/test/cctest/test-assembler-x64.cc
index 86acfc9c2ff0500f8581d644cd44c8cf2f0f486b..8da1b7ac3a8424ac493b22f7e0bceaf549ff30ea 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1359,6 +1359,13 @@ TEST(AssemblerX64AVX_sd) {
__ vmovsd(xmm5, Operand(rsp, kDoubleSize));
__ vmovsd(xmm6, xmm5);
__ vmovapd(xmm3, xmm6);
+
+ __ movl(rdx, Immediate(6));
+ __ vcvtlsi2sd(xmm6, xmm6, rdx);
+ __ movl(Operand(rsp, 0), Immediate(5));
+ __ vcvtlsi2sd(xmm7, xmm7, Operand(rsp, 0));
+ __ vsubsd(xmm7, xmm6, xmm7); // xmm7 is 1.0
+ __ vmulsd(xmm1, xmm1, xmm7);
__ addq(rsp, Immediate(kDoubleSize * 2));
__ vucomisd(xmm3, xmm1);
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/test-disasm-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698