Bug 1427168 - IonMonkey: MIPS: Fix GSImm13 encode. r=yuyin
authorHeiher <r@hev.cc>
Thu, 28 Dec 2017 16:12:47 +0800
changeset 397474 5fff4549d41137f153e4fd2ea1a0f0be37a13c02
parent 397469 03c9d149151518d8b3b4312379dc783fca36585a
child 397475 bfae84ba89f222286c649af0148a20f1bb50c799
push id33162
push userncsoregi@mozilla.com
push dateThu, 28 Dec 2017 21:37:53 +0000
treeherdermozilla-central@f0f170bd40e8 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersyuyin
bugs1427168
milestone59.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1427168 - IonMonkey: MIPS: Fix GSImm13 encode. r=yuyin --- js/src/jit/mips-shared/Assembler-mips-shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
js/src/jit/mips-shared/Assembler-mips-shared.h
--- a/js/src/jit/mips-shared/Assembler-mips-shared.h
+++ b/js/src/jit/mips-shared/Assembler-mips-shared.h
@@ -621,17 +621,17 @@ class GSImm13
     uint16_t value;
 
   public:
     GSImm13();
     GSImm13(uint32_t imm)
       : value(imm & ~0xf)
     { }
     uint32_t encode(uint32_t shift) {
-        return ((value >> 4) & 0x1f) << shift;
+        return ((value >> 4) & 0x1ff) << shift;
     }
     int32_t decodeSigned() {
         return value;
     }
     uint32_t decodeUnsigned() {
         return value;
     }
     static bool IsInRange(int32_t imm) {