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

Unified Diff: runtime/vm/intrinsifier_mips.cc

Issue 1124553006: Fix Bigint_rsh on mips (was obviously not properly tested). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intrinsifier_mips.cc
===================================================================
--- runtime/vm/intrinsifier_mips.cc (revision 45521)
+++ runtime/vm/intrinsifier_mips.cc (working copy)
@@ -868,9 +868,12 @@
// T2 = 32 - T3
__ subu(T2, ZR, T3);
__ addiu(T2, T2, Immediate(32));
+ // T1 = x_digits[n ~/ _DIGIT_BITS] >> (n % _DIGIT_BITS)
+ __ lw(T1, Address(V0, 0));
+ __ addiu(V0, V0, Immediate(Bigint::kBytesPerDigit));
Label loop_exit;
__ beq(V1, T6, &loop_exit);
- __ delay_slot()->mov(T1, ZR);
+ __ delay_slot()->srlv(T1, T1, T3);
Label loop;
__ Bind(&loop);
__ lw(T0, Address(V0, 0));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698