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

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

Issue 1391963005: [x64] Use vmovapd and vmovsd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix Win compile. 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-code-stubs-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 c067ac46f2c8de63cd582cbc3a1425eab773d7cb..86acfc9c2ff0500f8581d644cd44c8cf2f0f486b 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1353,7 +1353,14 @@ TEST(AssemblerX64AVX_sd) {
// arguments in xmm0, xmm1 and xmm2
__ movl(rax, Immediate(0));
- __ vmaxsd(xmm3, xmm0, xmm1);
+ __ vmaxsd(xmm4, xmm0, xmm1);
+ __ subq(rsp, Immediate(kDoubleSize * 2)); // For memory operand
+ __ vmovsd(Operand(rsp, kDoubleSize), xmm4);
+ __ vmovsd(xmm5, Operand(rsp, kDoubleSize));
+ __ vmovsd(xmm6, xmm5);
+ __ vmovapd(xmm3, xmm6);
+ __ addq(rsp, Immediate(kDoubleSize * 2));
+
__ vucomisd(xmm3, xmm1);
__ j(parity_even, &exit);
__ j(not_equal, &exit);
« no previous file with comments | « src/x64/macro-assembler-x64.cc ('k') | test/cctest/test-code-stubs-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698