From 3c6a6701e631149960e60d5859fa33615839f06d Mon Sep 17 00:00:00 2001 From: Egor Chesakov Date: Wed, 22 Aug 2018 19:09:17 -0700 Subject: [PATCH] Use insEncodeImmT2_Mov to encode imm in IF_T2_N1 in src/jit/emitarm.cpp --- src/jit/emitarm.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/jit/emitarm.cpp b/src/jit/emitarm.cpp index 8a6cde4..2a4c06f 100644 --- a/src/jit/emitarm.cpp +++ b/src/jit/emitarm.cpp @@ -5391,11 +5391,7 @@ BYTE* emitter::emitOutputLJ(insGroup* ig, BYTE* dst, instrDesc* i) } ((instrDescJmp*)id)->idjTemp.idjAddr = (dstOffs > srcOffs) ? dst : NULL; - assert((imm & 0x0000ffff) == imm); - code |= (imm & 0x00ff); - code |= ((imm & 0x0700) << 4); - code |= ((imm & 0x0800) << 15); - code |= ((imm & 0xf000) << 4); + code |= insEncodeImmT2_Mov(imm); dst += emitOutput_Thumb2Instr(dst, code); if (id->idIsCnsReloc() || id->idIsDspReloc()) -- 2.7.4