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

Unified Diff: runtime/vm/assembler_ia32_test.cc

Issue 14057004: Convert diamond shaped control flow into a single conditional instruction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: address Florian's comments Created 7 years, 8 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: 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);

Powered by Google App Engine
This is Rietveld 408576698