Index: test/cctest/test-disasm-ia32.cc |
diff --git a/test/cctest/test-disasm-ia32.cc b/test/cctest/test-disasm-ia32.cc |
index 755c9d55f2e7ecd121ee2ff5f2039bbc6cfd3823..fb0c56283f6c388da054a0ad8bcbd280b14bc55c 100644 |
--- a/test/cctest/test-disasm-ia32.cc |
+++ b/test/cctest/test-disasm-ia32.cc |
@@ -471,6 +471,21 @@ TEST(DisasmIa320) { |
} |
} |
+ // AVX instruction |
+ { |
+ if (CpuFeatures::IsSupported(AVX)) { |
+ CpuFeatureScope scope(&assm, AVX); |
+ __ vaddsd(xmm0, xmm1, xmm2); |
+ __ vaddsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
+ __ vmulsd(xmm0, xmm1, xmm2); |
+ __ vmulsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
+ __ vsubsd(xmm0, xmm1, xmm2); |
+ __ vsubsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
+ __ vdivsd(xmm0, xmm1, xmm2); |
+ __ vdivsd(xmm0, xmm1, Operand(ebx, ecx, times_4, 10000)); |
+ } |
+ } |
+ |
// xchg. |
{ |
__ xchg(eax, eax); |