Lines Matching refs:src

457 …jit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw)  in sljit_emit_return()  argument
460 CHECK(check_sljit_emit_return(compiler, op, src, srcw)); in sljit_emit_return()
462 if (op != SLJIT_MOV || !FAST_IS_REG(src)) { in sljit_emit_return()
463 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); in sljit_emit_return()
464 src = SLJIT_R0; in sljit_emit_return()
468 return push_inst(compiler, RESTORE | D(SLJIT_R0) | S1(src) | S2(0), UNMOVABLE_INS); in sljit_emit_return()
809 sljit_si src, sljit_sw srcw) in sljit_emit_op1() argument
814 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
816 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op1()
822 return emit_op(compiler, SLJIT_MOV, flags | WORD_DATA, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
825 return emit_op(compiler, SLJIT_MOV_UI, flags | INT_DATA, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
828 …emit_op(compiler, SLJIT_MOV_SI, flags | INT_DATA | SIGNED_DATA, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
831 …return emit_op(compiler, SLJIT_MOV_UB, flags | BYTE_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJI… in sljit_emit_op1()
834 … SLJIT_MOV_SB, flags | BYTE_DATA | SIGNED_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
837 …return emit_op(compiler, SLJIT_MOV_UH, flags | HALF_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJI… in sljit_emit_op1()
840 … SLJIT_MOV_SH, flags | HALF_DATA | SIGNED_DATA, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
844 …return emit_op(compiler, SLJIT_MOV, flags | WORD_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, s… in sljit_emit_op1()
847 …return emit_op(compiler, SLJIT_MOV_UI, flags | INT_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src,… in sljit_emit_op1()
850 …ler, SLJIT_MOV_SI, flags | INT_DATA | SIGNED_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
853 …, SLJIT_MOV_UB, flags | BYTE_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
856 …, flags | BYTE_DATA | SIGNED_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
859 …, SLJIT_MOV_UH, flags | HALF_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
862 …, flags | HALF_DATA | SIGNED_DATA | WRITE_BACK, dst, dstw, TMP_REG1, 0, src, (src & SLJIT_IMM) ? (… in sljit_emit_op1()
866 return emit_op(compiler, op, flags, dst, dstw, TMP_REG1, 0, src, srcw); in sljit_emit_op1()
869 return emit_op(compiler, SLJIT_SUB, flags | IMM_OP, dst, dstw, SLJIT_IMM, 0, src, srcw); in sljit_emit_op1()
958 sljit_si src, sljit_sw srcw) in sljit_emit_fop1_convw_fromd() argument
960 if (src & SLJIT_MEM) { in sljit_emit_fop1_convw_fromd()
961 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src, srcw, dst, dstw)); in sljit_emit_fop1_convw_fromd()
962 src = TMP_FREG1; in sljit_emit_fop1_convw_fromd()
965 src <<= 1; in sljit_emit_fop1_convw_fromd()
967 FAIL_IF(push_inst(compiler, SELECT_FOP(op, FSTOI, FDTOI) | DA(TMP_FREG1) | S2A(src), MOVABLE_INS)); in sljit_emit_fop1_convw_fromd()
983 sljit_si src, sljit_sw srcw) in sljit_emit_fop1_convd_fromw() argument
987 if (src & SLJIT_IMM) { in sljit_emit_fop1_convd_fromw()
993 src = TMP_REG1; in sljit_emit_fop1_convd_fromw()
997 if (FAST_IS_REG(src)) { in sljit_emit_fop1_convd_fromw()
998 …FAIL_IF(emit_op_mem2(compiler, WORD_DATA, src, SLJIT_MEM1(SLJIT_SP), FLOAT_TMP_MEM_OFFSET, SLJIT_M… in sljit_emit_fop1_convd_fromw()
999 src = SLJIT_MEM1(SLJIT_SP); in sljit_emit_fop1_convd_fromw()
1003 FAIL_IF(emit_op_mem2(compiler, SINGLE_DATA | LOAD_DATA, TMP_FREG1, src, srcw, dst, dstw)); in sljit_emit_fop1_convd_fromw()
1034 sljit_si src, sljit_sw srcw) in sljit_emit_fop1() argument
1043 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1050 if (src & SLJIT_MEM) { in sljit_emit_fop1()
1051 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, dst_r, src, srcw, dst, dstw)); in sljit_emit_fop1()
1052 src = dst_r; in sljit_emit_fop1()
1055 src <<= 1; in sljit_emit_fop1()
1059 if (src != dst_r) { in sljit_emit_fop1()
1061 FAIL_IF(push_inst(compiler, FMOVS | DA(dst_r) | S2A(src), MOVABLE_INS)); in sljit_emit_fop1()
1063 FAIL_IF(push_inst(compiler, FMOVS | DA(dst_r | 1) | S2A(src | 1), MOVABLE_INS)); in sljit_emit_fop1()
1066 dst_r = src; in sljit_emit_fop1()
1070 FAIL_IF(push_inst(compiler, FNEGS | DA(dst_r) | S2A(src), MOVABLE_INS)); in sljit_emit_fop1()
1071 if (dst_r != src && !(op & SLJIT_SINGLE_OP)) in sljit_emit_fop1()
1072 FAIL_IF(push_inst(compiler, FMOVS | DA(dst_r | 1) | S2A(src | 1), MOVABLE_INS)); in sljit_emit_fop1()
1075 FAIL_IF(push_inst(compiler, FABSS | DA(dst_r) | S2A(src), MOVABLE_INS)); in sljit_emit_fop1()
1076 if (dst_r != src && !(op & SLJIT_SINGLE_OP)) in sljit_emit_fop1()
1077 FAIL_IF(push_inst(compiler, FMOVS | DA(dst_r | 1) | S2A(src | 1), MOVABLE_INS)); in sljit_emit_fop1()
1080 FAIL_IF(push_inst(compiler, SELECT_FOP(op, FSTOD, FDTOS) | DA(dst_r) | S2A(src), MOVABLE_INS)); in sljit_emit_fop1()
1196 …IBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si src, sljit_sw srcw) in sljit_emit_fast_return() argument
1199 CHECK(check_sljit_emit_fast_return(compiler, src, srcw)); in sljit_emit_fast_return()
1200 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_fast_return()
1202 if (FAST_IS_REG(src)) in sljit_emit_fast_return()
1203 FAIL_IF(push_inst(compiler, OR | D(TMP_LINK) | S1(0) | S2(src), DR(TMP_LINK))); in sljit_emit_fast_return()
1204 else if (src & SLJIT_MEM) in sljit_emit_fast_return()
1205 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_LINK, src, srcw)); in sljit_emit_fast_return()
1206 else if (src & SLJIT_IMM) in sljit_emit_fast_return()
1335 …it_si sljit_emit_ijump(struct sljit_compiler *compiler, sljit_si type, sljit_si src, sljit_sw srcw) in sljit_emit_ijump() argument
1341 CHECK(check_sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_ijump()
1342 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_ijump()
1344 if (FAST_IS_REG(src)) in sljit_emit_ijump()
1345 src_r = src; in sljit_emit_ijump()
1346 else if (src & SLJIT_IMM) { in sljit_emit_ijump()
1360 FAIL_IF(emit_op_mem(compiler, WORD_DATA | LOAD_DATA, TMP_REG2, src, srcw)); in sljit_emit_ijump()
1372 sljit_si src, sljit_sw srcw, in sljit_emit_op_flags() argument
1378 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, src, srcw, type)); in sljit_emit_op_flags()
1390 if (op >= SLJIT_ADD && (src & SLJIT_MEM)) { in sljit_emit_op_flags()
1391 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op_flags()
1392 FAIL_IF(emit_op_mem2(compiler, WORD_DATA | LOAD_DATA, TMP_REG1, src, srcw, dst, dstw)); in sljit_emit_op_flags()
1393 src = TMP_REG1; in sljit_emit_op_flags()
1407 …return emit_op(compiler, op, flags | CUMULATIVE_OP | IMM_OP | ALT_KEEP_CACHE, dst, dstw, src, srcw… in sljit_emit_op_flags()