Lines Matching refs:src

49 #define COPY_BITS(src, from, to, bits) \  argument
50 ((from >= to ? (src >> (from - to)) : (src << (to - from))) & (((1 << bits) - 1) << to))
1190 …jit_si sljit_emit_return(struct sljit_compiler *compiler, sljit_si op, sljit_si src, sljit_sw srcw) in sljit_emit_return() argument
1196 CHECK(check_sljit_emit_return(compiler, op, src, srcw)); in sljit_emit_return()
1198 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); in sljit_emit_return()
1316 sljit_si src, sljit_sw srcw) in sljit_emit_op1() argument
1322 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1324 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op1()
1342 if (src & SLJIT_IMM) in sljit_emit_op1()
1347 if (src & SLJIT_IMM) in sljit_emit_op1()
1352 if (src & SLJIT_IMM) in sljit_emit_op1()
1357 if (src & SLJIT_IMM) in sljit_emit_op1()
1368 if (src & SLJIT_IMM) in sljit_emit_op1()
1373 if (src & SLJIT_IMM) in sljit_emit_op1()
1378 if (src & SLJIT_IMM) in sljit_emit_op1()
1383 if (src & SLJIT_IMM) in sljit_emit_op1()
1392 if (src & SLJIT_IMM) in sljit_emit_op1()
1394 else if (src & SLJIT_MEM) { in sljit_emit_op1()
1395 if (getput_arg_fast(compiler, flags, dst_r, src, srcw)) in sljit_emit_op1()
1398 FAIL_IF(getput_arg(compiler, flags, dst_r, src, srcw, dst, dstw)); in sljit_emit_op1()
1401 return emit_op_imm(compiler, op, dst_r, TMP_REG1, src); in sljit_emit_op1()
1402 dst_r = src; in sljit_emit_op1()
1419 return sljit_emit_op2(compiler, SLJIT_SUB | op_flags, dst, dstw, SLJIT_IMM, 0, src, srcw); in sljit_emit_op1()
1423 if (src & SLJIT_MEM) { in sljit_emit_op1()
1424 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG2, src, srcw)) in sljit_emit_op1()
1427 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src, srcw, dst, dstw)); in sljit_emit_op1()
1428 src = TMP_REG2; in sljit_emit_op1()
1431 if (src & SLJIT_IMM) in sljit_emit_op1()
1434 srcw = src; in sljit_emit_op1()
1631 sljit_si src, sljit_sw srcw) in sljit_emit_fop1_convw_fromd() argument
1633 if (src & SLJIT_MEM) { in sljit_emit_fop1_convw_fromd()
1634 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_convw_fromd()
1635 src = TMP_FREG1; in sljit_emit_fop1_convw_fromd()
1638 FAIL_IF(push_inst32(compiler, VCVT_S32_F32 | (op & SLJIT_SINGLE_OP) | DD4(TMP_FREG1) | DM4(src))); in sljit_emit_fop1_convw_fromd()
1652 sljit_si src, sljit_sw srcw) in sljit_emit_fop1_convd_fromw() argument
1656 if (FAST_IS_REG(src)) in sljit_emit_fop1_convd_fromw()
1657 FAIL_IF(push_inst32(compiler, VMOV | RT4(src) | DN4(TMP_FREG1))); in sljit_emit_fop1_convd_fromw()
1658 else if (src & SLJIT_MEM) { in sljit_emit_fop1_convd_fromw()
1660 FAIL_IF(emit_fop_mem(compiler, FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_convd_fromw()
1694 sljit_si src, sljit_sw srcw) in sljit_emit_fop1() argument
1705 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1709 if (src & SLJIT_MEM) { in sljit_emit_fop1()
1710 emit_fop_mem(compiler, (op & SLJIT_SINGLE_OP) | FPU_LOAD, dst_r, src, srcw); in sljit_emit_fop1()
1711 src = dst_r; in sljit_emit_fop1()
1716 if (src != dst_r) { in sljit_emit_fop1()
1718 FAIL_IF(push_inst32(compiler, VMOV_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1720 dst_r = src; in sljit_emit_fop1()
1724 FAIL_IF(push_inst32(compiler, VNEG_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1727 FAIL_IF(push_inst32(compiler, VABS_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1730 FAIL_IF(push_inst32(compiler, VCVT_F64_F32 | (op & SLJIT_SINGLE_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1816 …IBUTE sljit_si sljit_emit_fast_return(struct sljit_compiler *compiler, sljit_si src, sljit_sw srcw) in sljit_emit_fast_return() argument
1819 CHECK(check_sljit_emit_fast_return(compiler, src, srcw)); in sljit_emit_fast_return()
1820 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_fast_return()
1822 if (FAST_IS_REG(src)) in sljit_emit_fast_return()
1823 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(TMP_REG3, src))); in sljit_emit_fast_return()
1824 else if (src & SLJIT_MEM) { in sljit_emit_fast_return()
1825 if (getput_arg_fast(compiler, WORD_SIZE, TMP_REG3, src, srcw)) in sljit_emit_fast_return()
1830 FAIL_IF(getput_arg(compiler, WORD_SIZE, TMP_REG2, src, srcw, 0, 0)); in sljit_emit_fast_return()
1834 else if (src & SLJIT_IMM) in sljit_emit_fast_return()
1947 …it_si sljit_emit_ijump(struct sljit_compiler *compiler, sljit_si type, sljit_si src, sljit_sw srcw) in sljit_emit_ijump() argument
1952 CHECK(check_sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_ijump()
1953 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_ijump()
1956 if (!(src & SLJIT_IMM)) { in sljit_emit_ijump()
1957 if (FAST_IS_REG(src)) in sljit_emit_ijump()
1958 return push_inst16(compiler, (type <= SLJIT_JUMP ? BX : BLX) | RN3(src)); in sljit_emit_ijump()
1960 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, type <= SLJIT_JUMP ? TMP_PC : TMP_REG1, src, srcw)); in sljit_emit_ijump()
1977 sljit_si src, sljit_sw srcw, in sljit_emit_op_flags() argument
1984 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, src, srcw, type)); in sljit_emit_op_flags()
1986 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op_flags()
2010 if ((op == SLJIT_OR || op == SLJIT_XOR) && FAST_IS_REG(dst) && dst == src) { in sljit_emit_op_flags()
2013 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst) | 1)); in sljit_emit_op_flags()
2025 if (src & SLJIT_MEM) { in sljit_emit_op_flags()
2026 FAIL_IF(emit_op_mem2(compiler, WORD_SIZE, TMP_REG2, src, srcw, dst, dstw)); in sljit_emit_op_flags()
2027 src = TMP_REG2; in sljit_emit_op_flags()
2029 } else if (src & SLJIT_IMM) { in sljit_emit_op_flags()
2031 src = TMP_REG2; in sljit_emit_op_flags()
2035 if (op == SLJIT_AND || src != dst_r) { in sljit_emit_op_flags()
2037 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 1)); in sljit_emit_op_flags()
2038 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 0)); in sljit_emit_op_flags()
2042 FAIL_IF(push_inst32(compiler, ins | RN4(src) | RD4(dst_r) | 1)); in sljit_emit_op_flags()