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

Unified Diff: runtime/vm/assembler_x64_test.cc

Issue 10440099: Adding unary op optimizations. missing assembly operations/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
===================================================================
--- runtime/vm/assembler_x64_test.cc (revision 8118)
+++ runtime/vm/assembler_x64_test.cc (working copy)
@@ -1234,6 +1234,19 @@
}
+ASSEMBLER_TEST_GENERATE(TestNot, assembler) {
+ __ movq(RAX, Immediate(0xFFFFFFFF00000000));
+ __ notq(RAX);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(TestNot, entry) {
+ typedef int (*TestNot)();
+ unsigned int res = reinterpret_cast<TestNot>(entry)();
+ EXPECT_EQ(0xFFFFFFFF, res);
+}
+
regis 2012/05/31 09:48:19 Shouldn't you add tests for notl and xorpd?
srdjan 2012/05/31 20:20:42 Removed notl (it was never implemented), added tes
} // namespace dart
#endif // defined TARGET_ARCH_X64

Powered by Google App Engine
This is Rietveld 408576698