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

Unified Diff: runtime/vm/assembler_mips_test.cc

Issue 713993002: Fix unsigned multiplication in MIPS simulator (add assembler regression test). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 1 month 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 | « no previous file | runtime/vm/constants_mips.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips_test.cc
===================================================================
--- runtime/vm/assembler_mips_test.cc (revision 41673)
+++ runtime/vm/assembler_mips_test.cc (working copy)
@@ -505,8 +505,8 @@
ASSEMBLER_TEST_GENERATE(Multu_hi, assembler) {
- __ LoadImmediate(T1, 65536);
- __ LoadImmediate(T2, 65536);
+ __ LoadImmediate(T1, -1);
+ __ LoadImmediate(T2, -1);
__ multu(T1, T2);
__ mfhi(V0);
__ jr(RA);
@@ -515,7 +515,7 @@
ASSEMBLER_TEST_RUN(Multu_hi, test) {
typedef int (*SimpleCode)() DART_UNUSED;
- EXPECT_EQ(1, EXECUTE_TEST_CODE_INT32(SimpleCode, test->entry()));
+ EXPECT_EQ(0xfffffffe, EXECUTE_TEST_CODE_INT32(SimpleCode, test->entry()));
}
« no previous file with comments | « no previous file | runtime/vm/constants_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698