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

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

Issue 1420653005: [x64] Implemennt vroundsd AVX instruction. (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 f7249baf01d698c801fd30f110710efa270fa3ca..9bbb3813ce750dfc520bc27d66845d956c5699d9 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1484,6 +1484,16 @@ TEST(AssemblerX64AVX_sd) {
__ cmpq(rcx, rdx);
__ j(not_equal, &exit);
+ // Test vroundsd
+ __ movl(rax, Immediate(16));
+ __ movq(rdx, V8_UINT64_C(0x4002000000000000)); // 2.25
+ __ vmovq(xmm4, rdx);
+ __ vroundsd(xmm5, xmm4, xmm4, kRoundUp);
+ __ movq(rcx, V8_UINT64_C(0x4008000000000000)); // 3.0
+ __ vmovq(xmm6, rcx);
+ __ vucomisd(xmm5, xmm6);
+ __ 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