Lines Matching refs:inst

368 #define INST(inst, type) ((sljit_ins)((type & SLJIT_32) ? inst##_W : inst##_D))  argument
412 sljit_ins *inst; in detect_jump_type() local
414 inst = (sljit_ins *)jump->addr; in detect_jump_type()
426 diff = (sljit_sw)target_addr - (sljit_sw)inst - executable_offset; in detect_jump_type()
432 inst--; in detect_jump_type()
433 inst[0] = (inst[0] & 0xfc0003ff) ^ 0x4000000; in detect_jump_type()
435 jump->addr = (sljit_uw)inst; in detect_jump_type()
436 return inst; in detect_jump_type()
444 inst[-1] |= (sljit_ins)IMM_I16(2); in detect_jump_type()
448 return inst; in detect_jump_type()
453 inst[-1] |= (sljit_ins)IMM_I16(3); in detect_jump_type()
456 inst[1] = inst[0]; in detect_jump_type()
457 return inst + 1; in detect_jump_type()
462 inst[-1] |= (sljit_ins)IMM_I16(3); in detect_jump_type()
465 inst[1] = inst[0]; in detect_jump_type()
466 return inst + 1; in detect_jump_type()
471 inst[-1] |= (sljit_ins)IMM_I16(4); in detect_jump_type()
474 inst[2] = inst[0]; in detect_jump_type()
475 return inst + 2; in detect_jump_type()
480 inst[-1] |= (sljit_ins)IMM_I16(5); in detect_jump_type()
481 inst[3] = inst[0]; in detect_jump_type()
482 return inst + 3; in detect_jump_type()
2230 #define FINST(inst, type) (sljit_ins)((type & SLJIT_32) ? inst##_S : inst##_D) argument
2243 sljit_ins inst; in sljit_emit_fop1_conv_sw_from_f64() local
2251 inst = FINST(FTINTRZ_L, op); in sljit_emit_fop1_conv_sw_from_f64()
2254 inst = FINST(FTINTRZ_W, op); in sljit_emit_fop1_conv_sw_from_f64()
2257 inst = BREAK; in sljit_emit_fop1_conv_sw_from_f64()
2266 FAIL_IF(push_inst(compiler, inst | FRD(TMP_FREG1) | FRJ(src))); in sljit_emit_fop1_conv_sw_from_f64()
2278 sljit_ins inst; in sljit_emit_fop1_conv_f64_from_w() local
2286 inst = (sljit_ins)((op & SLJIT_32) ? FFINT_S_L : FFINT_D_L); in sljit_emit_fop1_conv_f64_from_w()
2289 inst = (sljit_ins)((op & SLJIT_32) ? FFINT_S_W : FFINT_D_W); in sljit_emit_fop1_conv_f64_from_w()
2292 inst = BREAK; in sljit_emit_fop1_conv_f64_from_w()
2307 FAIL_IF(push_inst(compiler, inst | FRD(dst_r) | FRJ(dst_r))); in sljit_emit_fop1_conv_f64_from_w()
2325 sljit_ins inst; in sljit_emit_fop1_conv_f64_from_uw() local
2333 inst = (sljit_ins)((op & SLJIT_32) ? FFINT_S_L : FFINT_D_L); in sljit_emit_fop1_conv_f64_from_uw()
2336 inst = (sljit_ins)((op & SLJIT_32) ? FFINT_S_W : FFINT_D_W); in sljit_emit_fop1_conv_f64_from_uw()
2339 inst = BREAK; in sljit_emit_fop1_conv_f64_from_uw()
2360 FAIL_IF(push_inst(compiler, inst | FRD(dst_r) | FRJ(dst_r))); in sljit_emit_fop1_conv_f64_from_uw()
2367 FAIL_IF(push_inst(compiler, inst | FRD(dst_r) | FRJ(dst_r))); in sljit_emit_fop1_conv_f64_from_uw()
2611 sljit_ins inst; in sljit_emit_fcopy() local
2617 inst = ((op & SLJIT_32) ? MOVGR2FR_W : MOVGR2FR_D) | FRD(freg) | RJ(reg); in sljit_emit_fcopy()
2619 inst = ((op & SLJIT_32) ? MOVFR2GR_S : MOVFR2GR_D) | RD(reg) | FRJ(freg); in sljit_emit_fcopy()
2620 return push_inst(compiler, inst); in sljit_emit_fcopy()
2697 sljit_ins inst; in sljit_emit_jump() local
2707 inst = get_jump_instruction(type); in sljit_emit_jump()
2709 if (inst != 0) { in sljit_emit_jump()
2710 PTR_FAIL_IF(push_inst(compiler, inst)); in sljit_emit_jump()
2715 inst = JIRL | RJ(TMP_REG1) | IMM_I16(0); in sljit_emit_jump()
2719 inst |= RD(RETURN_ADDR_REG); in sljit_emit_jump()
2722 PTR_FAIL_IF(push_inst(compiler, inst)); in sljit_emit_jump()
2751 sljit_ins inst; in sljit_emit_cmp() local
2799 inst = BNE | RJ(src1) | RD(src2); in sljit_emit_cmp()
2802 inst = BEQ | RJ(src1) | RD(src2); in sljit_emit_cmp()
2805 inst = BGEU | RJ(src1) | RD(src2); in sljit_emit_cmp()
2808 inst = BLTU | RJ(src1) | RD(src2); in sljit_emit_cmp()
2811 inst = BGEU | RJ(src2) | RD(src1); in sljit_emit_cmp()
2814 inst = BLTU | RJ(src2) | RD(src1); in sljit_emit_cmp()
2817 inst = BGE | RJ(src1) | RD(src2); in sljit_emit_cmp()
2820 inst = BLT | RJ(src1) | RD(src2); in sljit_emit_cmp()
2823 inst = BGE | RJ(src2) | RD(src1); in sljit_emit_cmp()
2826 inst = BLT | RJ(src2) | RD(src1); in sljit_emit_cmp()
2829 inst = BREAK; in sljit_emit_cmp()
2833 PTR_FAIL_IF(push_inst(compiler, inst)); in sljit_emit_cmp()
3690 sljit_ins *inst = (sljit_ins*)addr; in sljit_set_jump_addr() local
3693 SLJIT_UPDATE_WX_FLAGS(inst, inst + 4, 0); in sljit_set_jump_addr()
3695 SLJIT_ASSERT((inst[0] & OPC_1RI20(0x7f)) == LU12I_W); in sljit_set_jump_addr()
3696inst[0] = (inst[0] & (OPC_1RI20(0x7f) | 0x1f)) | (sljit_ins)(((new_target & 0xffffffff) >> 12) << … in sljit_set_jump_addr()
3698 SLJIT_ASSERT((inst[1] & OPC_1RI20(0x7f)) == LU32I_D); in sljit_set_jump_addr()
3699inst[1] = (inst[1] & (OPC_1RI20(0x7f) | 0x1f)) | (sljit_ins)(sljit_ins)(((new_target >> 32) & 0xff… in sljit_set_jump_addr()
3701 SLJIT_ASSERT((inst[2] & OPC_2RI12(0x3ff)) == LU52I_D); in sljit_set_jump_addr()
3702 inst[2] = (inst[2] & (OPC_2RI12(0x3ff) | 0x3ff)) | IMM_I12(new_target >> 52); in sljit_set_jump_addr()
3704 SLJIT_ASSERT((inst[3] & OPC_2RI12(0x3ff)) == ORI || (inst[3] & OPC_2RI16(0x3f)) == JIRL); in sljit_set_jump_addr()
3705 if ((inst[3] & OPC_2RI12(0x3ff)) == ORI) in sljit_set_jump_addr()
3706 inst[3] = (inst[3] & (OPC_2RI12(0x3ff) | 0x3ff)) | IMM_I12(new_target); in sljit_set_jump_addr()
3708 inst[3] = (inst[3] & (OPC_2RI16(0x3f) | 0x3ff)) | IMM_I12((new_target & 0xfff) >> 2); in sljit_set_jump_addr()
3710 SLJIT_UPDATE_WX_FLAGS(inst, inst + 4, 1); in sljit_set_jump_addr()
3712 inst = (sljit_ins *)SLJIT_ADD_EXEC_OFFSET(inst, executable_offset); in sljit_set_jump_addr()
3713 SLJIT_CACHE_FLUSH(inst, inst + 4); in sljit_set_jump_addr()