Lines Matching refs:inst

187 static sljit_s32 push_inst16(struct sljit_compiler *compiler, sljit_ins inst)  in push_inst16()  argument
190 SLJIT_ASSERT(!(inst & 0xffff0000)); in push_inst16()
194 *ptr = inst; in push_inst16()
199 static sljit_s32 push_inst32(struct sljit_compiler *compiler, sljit_ins inst) in push_inst32() argument
203 *ptr++ = inst >> 16; in push_inst32()
204 *ptr = inst; in push_inst32()
217 static SLJIT_INLINE void modify_imm32_const(sljit_u16 *inst, sljit_uw new_imm) in modify_imm32_const() argument
219 sljit_s32 dst = inst[1] & 0x0f00; in modify_imm32_const()
220 …SLJIT_ASSERT(((inst[0] & 0xfbf0) == (MOVW >> 16)) && ((inst[2] & 0xfbf0) == (MOVT >> 16)) && dst =… in modify_imm32_const()
221 inst[0] = (MOVW >> 16) | COPY_BITS(new_imm, 12, 0, 4) | COPY_BITS(new_imm, 11, 10, 1); in modify_imm32_const()
222 inst[1] = dst | COPY_BITS(new_imm, 8, 12, 3) | (new_imm & 0xff); in modify_imm32_const()
223 inst[2] = (MOVT >> 16) | COPY_BITS(new_imm, 12 + 16, 0, 4) | COPY_BITS(new_imm, 11 + 16, 10, 1); in modify_imm32_const()
224 inst[3] = dst | COPY_BITS(new_imm, 8 + 16, 12, 3) | ((new_imm & 0xff0000) >> 16); in modify_imm32_const()
1474 sljit_sw inst = VSTR_F32 | (flags & (SLJIT_F32_OP | FPU_LOAD)); in emit_fop_mem() local
1487 return push_inst32(compiler, inst | 0x800000 | RN4(arg & REG_MASK) | DD4(reg) | (argw >> 2)); in emit_fop_mem()
1489 return push_inst32(compiler, inst | RN4(arg & REG_MASK) | DD4(reg) | (-argw >> 2)); in emit_fop_mem()
1495 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg)); in emit_fop_mem()
1500 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1506 return push_inst32(compiler, inst | RN4(TMP_REG1) | DD4(reg) | ((argw & 0x3fc) >> 2)); in emit_fop_mem()
1513 return push_inst32(compiler, inst | 0x800000 | RN4(TMP_REG1) | DD4(reg)); in emit_fop_mem()
1975 sljit_u16 *inst = (sljit_u16*)addr; in sljit_set_jump_addr() local
1976 modify_imm32_const(inst, new_target); in sljit_set_jump_addr()
1977 inst = (sljit_u16 *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in sljit_set_jump_addr()
1978 SLJIT_CACHE_FLUSH(inst, inst + 4); in sljit_set_jump_addr()
1983 sljit_u16 *inst = (sljit_u16*)addr; in sljit_set_const() local
1984 modify_imm32_const(inst, new_constant); in sljit_set_const()
1985 inst = (sljit_u16 *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in sljit_set_const()
1986 SLJIT_CACHE_FLUSH(inst, inst + 4); in sljit_set_const()