Landing: MIPS: Fixed a bug in a special case of MacroAssembler::Ext.

Original code review: http://codereview.chromium.org/7777005/
Review URL: http://codereview.chromium.org/7778007

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9032 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a58b9ba9
......@@ -765,9 +765,7 @@ void MacroAssembler::Ext(Register rt,
// Move rs to rt and shift it left then right to get the
// desired bitfield on the right side and zeroes on the left.
int shift_left = 32 - (pos + size);
if (shift_left > 0) {
sll(rt, rs, shift_left);
}
sll(rt, rs, shift_left); // Acts as a move if shift_left == 0.
int shift_right = 32 - size;
if (shift_right > 0) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment