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

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

Issue 1411743003: [x64] Emit vcvtss2sd & vcvtsd2ss 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..5fdc19f882b23deaa6688f19c5f9d87a797b841a 100644
--- a/test/cctest/test-assembler-x64.cc
+++ b/test/cctest/test-assembler-x64.cc
@@ -1360,6 +1360,19 @@ TEST(AssemblerX64AVX_sd) {
__ vmovsd(xmm6, xmm5);
__ vmovapd(xmm3, xmm6);
+ // Test vcvtss2sd & vcvtsd2ss
+ __ movl(rax, Immediate(9));
+ __ movq(rdx, V8_INT64_C(0x426D1A0000000000));
+ __ movq(Operand(rsp, 0), rdx);
+ __ vcvtsd2ss(xmm6, xmm6, Operand(rsp, 0));
+ __ vcvtss2sd(xmm7, xmm6, xmm6);
+ __ vcvtsd2ss(xmm8, xmm7, xmm7);
+ __ movss(Operand(rsp, 0), xmm8);
+ __ vcvtss2sd(xmm9, xmm8, Operand(rsp, 0));
+ __ vmovq(rcx, xmm9);
+ __ cmpq(rcx, rdx);
+ __ j(not_equal, &exit);
+
// Test vcvttsd2si
__ movl(rax, Immediate(10));
__ movl(rdx, Immediate(123));
« 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