Index: test/cctest/test-macro-assembler-ia32.cc |
diff --git a/test/cctest/test-macro-assembler-ia32.cc b/test/cctest/test-macro-assembler-ia32.cc |
index 6a4cfec492a98b031960b67809b2d0b4e81b331c..3ad52712c49a85f1107984a1a02255e43d48dacd 100644 |
--- a/test/cctest/test-macro-assembler-ia32.cc |
+++ b/test/cctest/test-macro-assembler-ia32.cc |
@@ -123,6 +123,23 @@ TEST(LoadAndStoreWithRepresentation) { |
__ j(not_equal, &exit); |
// Test 5. |
+ if (CpuFeatures::IsSupported(SSE2)) { |
+ CpuFeatureScope scope(masm, SSE2); |
+ __ mov(eax, Immediate(5)); // Test XMM move immediate. |
+ __ Move(xmm0, 0.0); |
+ __ Move(xmm1, 0.0); |
+ __ ucomisd(xmm0, xmm1); |
+ __ j(not_equal, &exit); |
+ __ Move(xmm2, 991.01); |
+ __ ucomisd(xmm0, xmm2); |
+ __ j(equal, &exit); |
+ __ Move(xmm0, 991.01); |
+ __ ucomisd(xmm0, xmm2); |
+ __ j(not_equal, &exit); |
+ } |
+ |
+ // Test 6. |
+ __ mov(eax, Immediate(6)); |
__ Move(edx, Immediate(0)); // Test Move() |
__ cmp(edx, Immediate(0)); |
__ j(not_equal, &exit); |