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

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

Issue 1421733003: [x64] Make MathMinMax use AVX instructions when available. (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 b9e4b5fcc5948d80c2470f05582d349b638c4a39..c3ec40a146920dbf0fc778842f187ff9c58432f1 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1450,6 +1450,25 @@ TEST(AssemblerX64AVX_sd) {
__ cmpq(rdx, rcx);
__ j(not_equal, &exit);
+ // Test vandpd, vorpd, vxorpd
+ __ movl(rax, Immediate(14));
+ __ movl(rdx, Immediate(0x00ff00ff));
+ __ movl(rcx, Immediate(0x0f0f0f0f));
+ __ vmovd(xmm4, rdx);
+ __ vmovd(xmm5, rcx);
+ __ vandpd(xmm6, xmm4, xmm5);
+ __ vmovd(rdx, xmm6);
+ __ cmpl(rdx, Immediate(0x000f000f));
+ __ j(not_equal, &exit);
+ __ vorpd(xmm6, xmm4, xmm5);
+ __ vmovd(rdx, xmm6);
+ __ cmpl(rdx, Immediate(0x0fff0fff));
+ __ j(not_equal, &exit);
+ __ vxorpd(xmm6, xmm4, xmm5);
+ __ vmovd(rdx, xmm6);
+ __ cmpl(rdx, Immediate(0x0ff00ff0));
+ __ 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