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

Unified Diff: runtime/vm/assembler_x64_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_x64_test.cc
diff --git a/runtime/vm/assembler_x64_test.cc b/runtime/vm/assembler_x64_test.cc
index 2d29d9debb23edbe3be363c49f8d0bec87f913a0..bf2903d91f1551994a3fb462dce6a01d93e3e792 100644
--- a/runtime/vm/assembler_x64_test.cc
+++ b/runtime/vm/assembler_x64_test.cc
@@ -2291,6 +2291,21 @@ ASSEMBLER_TEST_RUN(ExtractSignBits, test) {
EXPECT_EQ(1, res);
}
+
+ASSEMBLER_TEST_GENERATE(TestSetCC, assembler) {
+ __ movq(RAX, Immediate(0xFFFFFFFF));
+ __ cmpq(RAX, RAX);
+ __ setcc(NOT_EQUAL, AL);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(TestSetCC, test) {
+ typedef uword (*TestSetCC)();
+ uword res = reinterpret_cast<TestSetCC>(test->entry())();
+ EXPECT_EQ(0xFFFFFF00, res);
+}
+
} // namespace dart
#endif // defined TARGET_ARCH_X64

Powered by Google App Engine
This is Rietveld 408576698