Index: test/cctest/test-disasm-x64.cc |
diff --git a/test/cctest/test-disasm-x64.cc b/test/cctest/test-disasm-x64.cc |
index 9fe73dea020b70609b84fa3a51a12d259e9afe5f..8806764c51ca611fed50133b6b698de8f4d69e07 100644 |
--- a/test/cctest/test-disasm-x64.cc |
+++ b/test/cctest/test-disasm-x64.cc |
@@ -90,11 +90,7 @@ TEST(DisasmX64) { |
__ or_(rdx, Immediate(3)); |
__ xor_(rdx, Immediate(3)); |
__ nop(); |
- { |
- CHECK(CpuFeatures::IsSupported(CPUID)); |
- CpuFeatures::Scope fscope(CPUID); |
- __ cpuid(); |
- } |
+ __ cpuid(); |
__ movsxbq(rdx, Operand(rcx, 0)); |
__ movsxwq(rdx, Operand(rcx, 0)); |
__ movzxbl(rdx, Operand(rcx, 0)); |
@@ -338,13 +334,28 @@ TEST(DisasmX64) { |
// SSE instruction |
{ |
+ // Move operation |
__ cvttss2si(rdx, Operand(rbx, rcx, times_4, 10000)); |
__ cvttss2si(rdx, xmm1); |
__ movaps(xmm0, xmm1); |
+ // logic operation |
__ andps(xmm0, xmm1); |
+ __ andps(xmm0, Operand(rbx, rcx, times_4, 10000)); |
__ orps(xmm0, xmm1); |
+ __ ordps(xmm0, Operand(rbx, rcx, times_4, 10000)); |
__ xorps(xmm0, xmm1); |
+ __ xordps(xmm0, Operand(rbx, rcx, times_4, 10000)); |
+ |
+ // Arithmetic operation |
+ __ addps(xmm1, xmm0); |
+ __ addps(xmm1, Operand(rbx, rcx, times_4, 10000)); |
+ __ subps(xmm1, xmm0); |
+ __ subps(xmm1, Operand(rbx, rcx, times_4, 10000)); |
+ __ mulps(xmm1, xmm0); |
+ __ mulps(xmm1, Operand(rbx, ecx, times_4, 10000)); |
+ __ divps(xmm1, xmm0); |
+ __ divps(xmm1, Operand(rbx, rcx, times_4, 10000)); |
} |
// SSE 2 instructions |
{ |