Revision: 16252
Author:   [email protected]
Date:     Tue Aug 20 22:10:20 2013 UTC
Log:      MIPS: Fix bug that prevents JALR to JAL optimizations.

TEST=

BUG=
[email protected]

Review URL: https://codereview.chromium.org/23072023

Patch from Dusan Milosavljevic <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16252

Modified:
 /branches/bleeding_edge/src/mips/assembler-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/assembler-mips.cc Sat Jul 27 01:07:53 2013 UTC +++ /branches/bleeding_edge/src/mips/assembler-mips.cc Tue Aug 20 22:10:20 2013 UTC
@@ -2203,8 +2203,7 @@

   Instr instr3 = instr_at(pc + 2 * kInstrSize);
   uint32_t ipc = reinterpret_cast<uint32_t>(pc + 3 * kInstrSize);
-  bool in_range = (ipc ^ static_cast<uint32_t>(itarget) >>
-                  (kImm26Bits + kImmFieldShift)) == 0;
+  bool in_range = ((ipc ^ itarget) >> (kImm26Bits + kImmFieldShift)) == 0;
   uint32_t target_field =
       static_cast<uint32_t>(itarget & kJumpAddrMask) >> kImmFieldShift;
   bool patched_jump = false;

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to