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

Unified Diff: runtime/vm/assembler_arm64_test.cc

Issue 263243002: Enables many language tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/code_patcher_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_arm64_test.cc
===================================================================
--- runtime/vm/assembler_arm64_test.cc (revision 35723)
+++ runtime/vm/assembler_arm64_test.cc (working copy)
@@ -1065,6 +1065,35 @@
}
+ASSEMBLER_TEST_GENERATE(Smulh_pos, assembler) {
+ __ movz(R1, 6, 0);
+ __ movz(R2, 7, 0);
+ __ smulh(R0, R1, R2);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Smulh_pos, test) {
+ typedef int (*SimpleCode)();
+ EXPECT_EQ(0, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
+}
+
+
+ASSEMBLER_TEST_GENERATE(Smulh_neg, assembler) {
+ __ movz(R1, 6, 0);
+ __ movz(R2, 7, 0);
+ __ neg(R2, R2);
+ __ smulh(R0, R1, R2);
+ __ ret();
+}
+
+
+ASSEMBLER_TEST_RUN(Smulh_neg, test) {
+ typedef int (*SimpleCode)();
+ EXPECT_EQ(-1, EXECUTE_TEST_CODE_INT64(SimpleCode, test->entry()));
+}
+
+
// Loading immediate values without the object pool.
ASSEMBLER_TEST_GENERATE(LoadImmediateSmall, assembler) {
__ LoadImmediate(R0, 42, kNoRegister);
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/code_patcher_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698