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

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

Issue 1044793002: [turbofan] Add backend support for float32 operations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add MachineOperator unit tests. Created 5 years, 9 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
Index: test/cctest/test-disasm-x64.cc
diff --git a/test/cctest/test-disasm-x64.cc b/test/cctest/test-disasm-x64.cc
index cdedc8be559ebb049c65ca28cba55b3024637c42..7b95eae54d81e47cafef64edbba27b9a02b540fb 100644
--- a/test/cctest/test-disasm-x64.cc
+++ b/test/cctest/test-disasm-x64.cc
@@ -404,6 +404,10 @@ TEST(DisasmX64) {
__ subss(xmm1, Operand(rbx, rcx, times_4, 10000));
__ divss(xmm1, xmm0);
__ divss(xmm1, Operand(rbx, rcx, times_4, 10000));
+ __ maxss(xmm1, xmm0);
+ __ maxss(xmm1, Operand(rbx, rcx, times_4, 10000));
+ __ minss(xmm1, xmm0);
+ __ minss(xmm1, Operand(rbx, rcx, times_4, 10000));
__ addps(xmm1, xmm0);
__ addps(xmm1, Operand(rbx, rcx, times_4, 10000));
__ subps(xmm1, xmm0);
@@ -492,6 +496,21 @@ TEST(DisasmX64) {
{
if (CpuFeatures::IsSupported(AVX)) {
CpuFeatureScope scope(&assm, AVX);
+ __ vaddss(xmm0, xmm1, xmm2);
+ __ vaddss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
+ __ vmulss(xmm0, xmm1, xmm2);
+ __ vmulss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
+ __ vsubss(xmm0, xmm1, xmm2);
+ __ vsubss(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
+ __ vdivss(xmm0, xmm1, xmm2);
+ __ vdivss(xmm0, xmm1, Operand(rbx, rcx, times_2, 10000));
+ __ vminss(xmm8, xmm1, xmm2);
+ __ vminss(xmm9, xmm1, Operand(rbx, rcx, times_8, 10000));
+ __ vmaxss(xmm8, xmm1, xmm2);
+ __ vmaxss(xmm9, xmm1, Operand(rbx, rcx, times_1, 10000));
+ __ vucomiss(xmm9, xmm1);
+ __ vucomiss(xmm8, Operand(rbx, rdx, times_2, 10981));
+
__ vaddsd(xmm0, xmm1, xmm2);
__ vaddsd(xmm0, xmm1, Operand(rbx, rcx, times_4, 10000));
__ vmulsd(xmm0, xmm1, xmm2);
@@ -504,6 +523,8 @@ TEST(DisasmX64) {
__ vminsd(xmm9, xmm1, Operand(rbx, rcx, times_8, 10000));
__ vmaxsd(xmm8, xmm1, xmm2);
__ vmaxsd(xmm9, xmm1, Operand(rbx, rcx, times_1, 10000));
+ __ vucomisd(xmm9, xmm1);
+ __ vucomisd(xmm8, Operand(rbx, rdx, times_2, 10981));
}
}

Powered by Google App Engine
This is Rietveld 408576698