Index: runtime/vm/assembler_ia32_test.cc |
diff --git a/runtime/vm/assembler_ia32_test.cc b/runtime/vm/assembler_ia32_test.cc |
index 79330614df720c2e1b2ac3123ba6d87fa843918e..b4075dab54ebcff95f18087f81e27ba7ff6646f5 100644 |
--- a/runtime/vm/assembler_ia32_test.cc |
+++ b/runtime/vm/assembler_ia32_test.cc |
@@ -2426,6 +2426,21 @@ ASSEMBLER_TEST_RUN(TestObjectCompare, test) { |
} |
+ASSEMBLER_TEST_GENERATE(TestSetCC, assembler) { |
+ __ movl(EAX, Immediate(0xFFFFFFFF)); |
+ __ cmpl(EAX, EAX); |
+ __ setcc(NOT_EQUAL, AL); |
+ __ ret(); |
+} |
+ |
+ |
+ASSEMBLER_TEST_RUN(TestSetCC, test) { |
+ typedef uword (*TestSetCC)(); |
+ uword res = reinterpret_cast<TestSetCC>(test->entry())(); |
+ EXPECT_EQ(0xFFFFFF00, res); |
+} |
+ |
+ |
ASSEMBLER_TEST_GENERATE(TestNop, assembler) { |
__ nop(1); |
__ nop(2); |