Bug 672722 - [MIPS] Use unsigned comparison for LIR_leui (r=wmaddox)
authorSteven Johnson <stejohns@adobe.com>
Wed, 20 Jul 2011 17:03:45 -0700
changeset 75790 c5bfe6edc445d9dca60489eaeeae37d09715aaab
parent 75789 99c5e7b68207f09af3b2abfa15f298a5544155c0
child 75791 cd22ad96188785a55e28ed172c70e1ce867f991a
push id3
push userfelipc@gmail.com
push dateFri, 30 Sep 2011 20:09:13 +0000
reviewerswmaddox
bugs672722
milestone9.0a1
Bug 672722 - [MIPS] Use unsigned comparison for LIR_leui (r=wmaddox)
js/src/nanojit/NativeMIPS.cpp
--- a/js/src/nanojit/NativeMIPS.cpp
+++ b/js/src/nanojit/NativeMIPS.cpp
@@ -1583,17 +1583,17 @@ namespace nanojit
                 SLTU(AT, rb, ra);
                 break;
             case LIR_leui:
                 if (branchOnFalse)
                     BNE(AT, ZERO, btarg);
                 else
                     BEQ(AT, ZERO, btarg);
                 patch = _nIns;
-                SLT(AT, rb, ra);
+                SLTU(AT, rb, ra);
                 break;
             case LIR_geui:
                 if (branchOnFalse)
                     BNE(AT, ZERO, btarg);
                 else
                     BEQ(AT, ZERO, btarg);
                 patch = _nIns;
                 SLTU(AT, ra, rb);