Lines Matching refs:src

899 	sljit_s32 src, sljit_sw srcw)  in sljit_emit_return_to()  argument
902 CHECK(check_sljit_emit_return_to(compiler, src, srcw)); in sljit_emit_return_to()
904 if (src & SLJIT_MEM) { in sljit_emit_return_to()
905 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_return_to()
906 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_REG1, src, srcw)); in sljit_emit_return_to()
907 src = TMP_REG1; in sljit_emit_return_to()
909 …} else if (src >= SLJIT_FIRST_SAVED_REG && src <= (SLJIT_S0 - SLJIT_KEPT_SAVEDS_COUNT(compiler->op… in sljit_emit_return_to()
910 FAIL_IF(push_inst(compiler, ADDI_D | RD(TMP_REG1) | RJ(src) | IMM_I12(0))); in sljit_emit_return_to()
911 src = TMP_REG1; in sljit_emit_return_to()
918 return sljit_emit_ijump(compiler, SLJIT_JUMP, src, srcw); in sljit_emit_return_to()
1766 sljit_s32 src, sljit_sw srcw) in sljit_emit_op1() argument
1771 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1773 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op1()
1781 return emit_op(compiler, SLJIT_MOV, WORD_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1784 …return emit_op(compiler, SLJIT_MOV_U32, INT_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src == S… in sljit_emit_op1()
1789 …LJIT_MOV_S32, INT_DATA | SIGNED_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src == SLJIT_IMM) ? … in sljit_emit_op1()
1792 …return emit_op(compiler, op, BYTE_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src == SLJIT_IMM) … in sljit_emit_op1()
1795 …return emit_op(compiler, op, BYTE_DATA | SIGNED_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src in sljit_emit_op1()
1798 …return emit_op(compiler, op, HALF_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src == SLJIT_IMM) … in sljit_emit_op1()
1801 …return emit_op(compiler, op, HALF_DATA | SIGNED_DATA | MOVE_OP, dst, dstw, TMP_REG1, 0, src, (src in sljit_emit_op1()
1806 return emit_op(compiler, op, flags, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1810 return emit_op(compiler, op, HALF_DATA, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1814 return emit_op(compiler, op | SLJIT_32, INT_DATA, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
1973 sljit_s32 src, sljit_sw srcw) in sljit_emit_op_src() argument
1975 sljit_s32 base = src & REG_MASK; in sljit_emit_op_src()
1978 CHECK(check_sljit_emit_op_src(compiler, op, src, srcw)); in sljit_emit_op_src()
1979 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op_src()
1983 if (FAST_IS_REG(src)) in sljit_emit_op_src()
1984 FAIL_IF(push_inst(compiler, ADDI_D | RD(RETURN_ADDR_REG) | RJ(src) | IMM_I12(0))); in sljit_emit_op_src()
1986 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, RETURN_ADDR_REG, src, srcw)); in sljit_emit_op_src()
1995 if (SLJIT_UNLIKELY(src & OFFS_REG_MASK)) { in sljit_emit_op_src()
1998 FAIL_IF(push_inst(compiler, SLLI_D | RD(TMP_REG1) | RJ(OFFS_REG(src)) | IMM_I12(srcw))); in sljit_emit_op_src()
2091 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_sw_from_f64() argument
2111 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_sw_from_f64()
2112 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src, srcw, dst, dstw)); in sljit_emit_fop1_conv_sw_from_f64()
2113 src = TMP_FREG1; in sljit_emit_fop1_conv_sw_from_f64()
2116 FAIL_IF(push_inst(compiler, inst | FRD(TMP_FREG1) | FRJ(src))); in sljit_emit_fop1_conv_sw_from_f64()
2126 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_w() argument
2146 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_f64_from_w()
2147 …FAIL_IF(emit_op_mem2(compiler, (word_data ? WORD_DATA : INT_DATA) | LOAD_DATA, TMP_REG1, src, srcw… in sljit_emit_fop1_conv_f64_from_w()
2148 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_w()
2149 } else if (src == SLJIT_IMM) { in sljit_emit_fop1_conv_f64_from_w()
2154 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_w()
2156 FAIL_IF(push_inst(compiler, (word_data ? MOVGR2FR_D : MOVGR2FR_W) | FRD(dst_r) | RJ(src))); in sljit_emit_fop1_conv_f64_from_w()
2166 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_sw() argument
2168 return sljit_emit_fop1_conv_f64_from_w(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1_conv_f64_from_sw()
2173 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_uw() argument
2193 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_f64_from_uw()
2194 …FAIL_IF(emit_op_mem2(compiler, (word_data ? WORD_DATA : INT_DATA) | LOAD_DATA, TMP_REG1, src, srcw… in sljit_emit_fop1_conv_f64_from_uw()
2195 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_uw()
2196 } else if (src == SLJIT_IMM) { in sljit_emit_fop1_conv_f64_from_uw()
2201 src = TMP_REG1; in sljit_emit_fop1_conv_f64_from_uw()
2205 FAIL_IF(push_inst(compiler, SRLI_W | RD(src) | RJ(src) | IMM_I12(0))); in sljit_emit_fop1_conv_f64_from_uw()
2207 FAIL_IF(push_inst(compiler, BLT | RJ(src) | RD(TMP_ZERO) | IMM_I16(4))); in sljit_emit_fop1_conv_f64_from_uw()
2209 FAIL_IF(push_inst(compiler, (word_data ? MOVGR2FR_D : MOVGR2FR_W) | FRD(dst_r) | RJ(src))); in sljit_emit_fop1_conv_f64_from_uw()
2213 FAIL_IF(push_inst(compiler, ANDI | RD(TMP_REG2) | RJ(src) | IMM_I12(1))); in sljit_emit_fop1_conv_f64_from_uw()
2214 FAIL_IF(push_inst(compiler, (word_data ? SRLI_D : SRLI_W) | RD(TMP_REG1) | RJ(src) | IMM_I12(1))); in sljit_emit_fop1_conv_f64_from_uw()
2271 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1() argument
2280 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
2287 if (src & SLJIT_MEM) { in sljit_emit_fop1()
2288 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, dst_r, src, srcw, dst, dstw)); in sljit_emit_fop1()
2289 src = dst_r; in sljit_emit_fop1()
2294 if (src != dst_r) { in sljit_emit_fop1()
2296 FAIL_IF(push_inst(compiler, FINST(FMOV, op) | FRD(dst_r) | FRJ(src))); in sljit_emit_fop1()
2298 dst_r = src; in sljit_emit_fop1()
2302 FAIL_IF(push_inst(compiler, FINST(FNEG, op) | FRD(dst_r) | FRJ(src))); in sljit_emit_fop1()
2305 FAIL_IF(push_inst(compiler, FINST(FABS, op) | FRD(dst_r) | FRJ(src))); in sljit_emit_fop1()
2309 FAIL_IF(push_inst(compiler, ((op & SLJIT_32) ? FCVT_D_S : FCVT_S_D) | FRD(dst_r) | FRJ(src))); in sljit_emit_fop1()
2695 …s32 sljit_emit_ijump(struct sljit_compiler *compiler, sljit_s32 type, sljit_s32 src, sljit_sw srcw) in sljit_emit_ijump() argument
2700 CHECK(check_sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_ijump()
2702 if (src != SLJIT_IMM) { in sljit_emit_ijump()
2703 if (src & SLJIT_MEM) { in sljit_emit_ijump()
2704 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_ijump()
2705 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_REG1, src, srcw)); in sljit_emit_ijump()
2706 src = TMP_REG1; in sljit_emit_ijump()
2708 …ompiler, JIRL | RD((type >= SLJIT_FAST_CALL) ? RETURN_ADDR_REG : TMP_ZERO) | RJ(src) | IMM_I12(0)); in sljit_emit_ijump()
2728 sljit_s32 src, sljit_sw srcw) in sljit_emit_icall() argument
2732 CHECK(check_sljit_emit_icall(compiler, type, arg_types, src, srcw)); in sljit_emit_icall()
2734 if (src & SLJIT_MEM) { in sljit_emit_icall()
2735 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_icall()
2736 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_REG1, src, srcw)); in sljit_emit_icall()
2737 src = TMP_REG1; in sljit_emit_icall()
2741 …if (src >= SLJIT_FIRST_SAVED_REG && src <= (SLJIT_S0 - SLJIT_KEPT_SAVEDS_COUNT(compiler->options))… in sljit_emit_icall()
2742 FAIL_IF(push_inst(compiler, ADDI_D | RD(TMP_REG1) | RJ(src) | IMM_I12(0))); in sljit_emit_icall()
2743 src = TMP_REG1; in sljit_emit_icall()
2751 return sljit_emit_ijump(compiler, type, src, srcw); in sljit_emit_icall()