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

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

Issue 1411023002: [x64] Emit vmovmskpd when AVX is enabled. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 cc5ce99d5f63f9ccb48bb6c7e2a163a8e0c1f4b4..de56c1b721612033147e89e22b94382491afc8e0 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1387,6 +1387,17 @@ TEST(AssemblerX64AVX_sd) {
__ cmpq(rcx, rdx);
__ j(not_equal, &exit);
+ // Test vmovmskpd
+ __ movl(rax, Immediate(12));
+ __ movq(rdx, V8_INT64_C(0x426D1A94A2000000)); // 1.0e12
+ __ vmovq(xmm6, rdx);
+ __ movq(rdx, V8_INT64_C(0xC26D1A94A2000000)); // -1.0e12
+ __ vmovq(xmm7, rdx);
+ __ shufps(xmm6, xmm7, 0x44);
+ __ vmovmskpd(rdx, xmm6);
+ __ cmpl(rdx, Immediate(2));
+ __ j(not_equal, &exit);
+
__ movl(rdx, Immediate(6));
__ vcvtlsi2sd(xmm6, xmm6, rdx);
__ movl(Operand(rsp, 0), Immediate(5));
« 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