Lines Matching refs:inst
210 static sljit_s32 push_inst16(struct sljit_compiler *compiler, sljit_ins inst) in push_inst16() argument
213 SLJIT_ASSERT(!(inst & 0xffff0000)); in push_inst16()
217 *ptr = (sljit_u16)(inst); in push_inst16()
222 static sljit_s32 push_inst32(struct sljit_compiler *compiler, sljit_ins inst) in push_inst32() argument
226 *ptr++ = (sljit_u16)(inst >> 16); in push_inst32()
227 *ptr = (sljit_u16)(inst); in push_inst32()
240 static SLJIT_INLINE void modify_imm32_const(sljit_u16 *inst, sljit_uw new_imm) in modify_imm32_const() argument
242 sljit_ins dst = inst[1] & 0x0f00; in modify_imm32_const()
243 …SLJIT_ASSERT(((inst[0] & 0xfbf0) == (MOVW >> 16)) && ((inst[2] & 0xfbf0) == (MOVT >> 16)) && dst =… in modify_imm32_const()
244 inst[0] = (sljit_u16)((MOVW >> 16) | COPY_BITS(new_imm, 12, 0, 4) | COPY_BITS(new_imm, 11, 10, 1)); in modify_imm32_const()
245 inst[1] = (sljit_u16)(dst | COPY_BITS(new_imm, 8, 12, 3) | (new_imm & 0xff)); in modify_imm32_const()
246 …inst[2] = (sljit_u16)((MOVT >> 16) | COPY_BITS(new_imm, 12 + 16, 0, 4) | COPY_BITS(new_imm, 11 + 1… in modify_imm32_const()
247 inst[3] = (sljit_u16)(dst | COPY_BITS(new_imm, 8 + 16, 12, 3) | ((new_imm & 0xff0000) >> 16)); in modify_imm32_const()
1756 sljit_ins inst = VSTR_F32 | (flags & (SLJIT_32 | FPU_LOAD)); in emit_fop_mem() local
1769 …return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | ((sljit_uw)argw >>… in emit_fop_mem()
1771 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | ((sljit_uw)-argw >> 2)); in emit_fop_mem()
1777 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg)); in emit_fop_mem()
1783 …return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | (((sljit_uw)argw & 0x3fc… in emit_fop_mem()
1790 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | (((sljit_uw)argw & 0x3fc) >> 2)); in emit_fop_mem()
1797 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg)); in emit_fop_mem()
2544 sljit_ins inst; in sljit_emit_mem() local
2584 inst = sljit_mem32[flags] | 0x900; in sljit_emit_mem()
2587 inst |= 0x400; in sljit_emit_mem()
2590 inst |= 0x200; in sljit_emit_mem()
2594 return push_inst32(compiler, inst | RT4(reg) | RN4(mem & REG_MASK) | (sljit_ins)memw); in sljit_emit_mem()
2641 sljit_u16 *inst = (sljit_u16*)addr; in sljit_set_jump_addr() local
2644 SLJIT_UPDATE_WX_FLAGS(inst, inst + 4, 0); in sljit_set_jump_addr()
2645 modify_imm32_const(inst, new_target); in sljit_set_jump_addr()
2646 SLJIT_UPDATE_WX_FLAGS(inst, inst + 4, 1); in sljit_set_jump_addr()
2647 inst = (sljit_u16 *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in sljit_set_jump_addr()
2648 SLJIT_CACHE_FLUSH(inst, inst + 4); in sljit_set_jump_addr()