Lines Matching refs:src

56 #define COPY_BITS(src, from, to, bits) \  argument
57 ((from >= to ? (src >> (from - to)) : (src << (to - from))) & (((1 << bits) - 1) << to))
1188 …_s32 sljit_emit_return(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 src, sljit_sw srcw) in sljit_emit_return() argument
1194 CHECK(check_sljit_emit_return(compiler, op, src, srcw)); in sljit_emit_return()
1196 FAIL_IF(emit_mov_before_return(compiler, op, src, srcw)); in sljit_emit_return()
1342 sljit_s32 src, sljit_sw srcw) in sljit_emit_op1() argument
1348 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1350 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op1()
1365 if (src & SLJIT_IMM) in sljit_emit_op1()
1370 if (src & SLJIT_IMM) in sljit_emit_op1()
1375 if (src & SLJIT_IMM) in sljit_emit_op1()
1380 if (src & SLJIT_IMM) in sljit_emit_op1()
1389 if (src & SLJIT_IMM) in sljit_emit_op1()
1391 else if (src & SLJIT_MEM) { in sljit_emit_op1()
1392 FAIL_IF(emit_op_mem(compiler, flags, dst_r, src, srcw, TMP_REG1)); in sljit_emit_op1()
1395 return emit_op_imm(compiler, op, dst_r, TMP_REG2, src); in sljit_emit_op1()
1396 dst_r = src; in sljit_emit_op1()
1410 return sljit_emit_op2(compiler, SLJIT_SUB | op_flags, dst, dstw, SLJIT_IMM, 0, src, srcw); in sljit_emit_op1()
1415 if (src & SLJIT_MEM) { in sljit_emit_op1()
1416 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in sljit_emit_op1()
1417 src = TMP_REG1; in sljit_emit_op1()
1420 emit_op_imm(compiler, flags | op, dst_r, TMP_REG2, src); in sljit_emit_op1()
1476 sljit_s32 src, sljit_sw srcw) in sljit_emit_op_src() argument
1479 CHECK(check_sljit_emit_op_src(compiler, op, src, srcw)); in sljit_emit_op_src()
1480 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_op_src()
1486 if (FAST_IS_REG(src)) in sljit_emit_op_src()
1487 FAIL_IF(push_inst16(compiler, MOV | SET_REGS44(TMP_REG2, src))); in sljit_emit_op_src()
1489 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG2, src, srcw, TMP_REG2)); in sljit_emit_op_src()
1498 return emit_op_mem(compiler, PRELOAD, TMP_PC, src, srcw, TMP_REG1); in sljit_emit_op_src()
1580 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_sw_from_f64() argument
1584 if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_sw_from_f64()
1585 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_F32_OP) | FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_conv_sw_from_f64()
1586 src = TMP_FREG1; in sljit_emit_fop1_conv_sw_from_f64()
1589 FAIL_IF(push_inst32(compiler, VCVT_S32_F32 | (op & SLJIT_F32_OP) | DD4(TMP_FREG1) | DM4(src))); in sljit_emit_fop1_conv_sw_from_f64()
1600 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1_conv_f64_from_sw() argument
1606 if (FAST_IS_REG(src)) in sljit_emit_fop1_conv_f64_from_sw()
1607 FAIL_IF(push_inst32(compiler, VMOV | RT4(src) | DN4(TMP_FREG1))); in sljit_emit_fop1_conv_f64_from_sw()
1608 else if (src & SLJIT_MEM) { in sljit_emit_fop1_conv_f64_from_sw()
1610 FAIL_IF(emit_fop_mem(compiler, FPU_LOAD, TMP_FREG1, src, srcw)); in sljit_emit_fop1_conv_f64_from_sw()
1646 sljit_s32 src, sljit_sw srcw) in sljit_emit_fop1() argument
1653 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
1660 if (src & SLJIT_MEM) { in sljit_emit_fop1()
1661 emit_fop_mem(compiler, (op & SLJIT_F32_OP) | FPU_LOAD, dst_r, src, srcw); in sljit_emit_fop1()
1662 src = dst_r; in sljit_emit_fop1()
1667 if (src != dst_r) { in sljit_emit_fop1()
1669 FAIL_IF(push_inst32(compiler, VMOV_F32 | (op & SLJIT_F32_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1671 dst_r = src; in sljit_emit_fop1()
1675 FAIL_IF(push_inst32(compiler, VNEG_F32 | (op & SLJIT_F32_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1678 FAIL_IF(push_inst32(compiler, VABS_F32 | (op & SLJIT_F32_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1681 FAIL_IF(push_inst32(compiler, VCVT_F64_F32 | (op & SLJIT_F32_OP) | DD4(dst_r) | DM4(src))); in sljit_emit_fop1()
1866 …_s32 softfloat_call_with_args(struct sljit_compiler *compiler, sljit_s32 arg_types, sljit_s32 *src) in softfloat_call_with_args() argument
1876 if (src && FAST_IS_REG(*src)) in softfloat_call_with_args()
1877 src_offset = reg_map[*src] * sizeof(sljit_sw); in softfloat_call_with_args()
1926 *src = TMP_REG1; in softfloat_call_with_args()
1942 *src = TMP_REG1; in softfloat_call_with_args()
1959 *src = TMP_REG1; in softfloat_call_with_args()
1962 *src = 1 + (stack_offset >> 2); in softfloat_call_with_args()
2099 …s32 sljit_emit_ijump(struct sljit_compiler *compiler, sljit_s32 type, sljit_s32 src, sljit_sw srcw) in sljit_emit_ijump() argument
2104 CHECK(check_sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_ijump()
2105 ADJUST_LOCAL_OFFSET(src, srcw); in sljit_emit_ijump()
2109 if (!(src & SLJIT_IMM)) { in sljit_emit_ijump()
2110 if (FAST_IS_REG(src)) { in sljit_emit_ijump()
2111 SLJIT_ASSERT(reg_map[src] != 14); in sljit_emit_ijump()
2112 return push_inst16(compiler, (type <= SLJIT_JUMP ? BX : BLX) | RN3(src)); in sljit_emit_ijump()
2115 …FAIL_IF(emit_op_mem(compiler, WORD_SIZE, type <= SLJIT_JUMP ? TMP_PC : TMP_REG1, src, srcw, TMP_RE… in sljit_emit_ijump()
2133 sljit_s32 src, sljit_sw srcw) in sljit_emit_icall() argument
2136 CHECK(check_sljit_emit_icall(compiler, type, arg_types, src, srcw)); in sljit_emit_icall()
2139 if (src & SLJIT_MEM) { in sljit_emit_icall()
2140 FAIL_IF(emit_op_mem(compiler, WORD_SIZE, TMP_REG1, src, srcw, TMP_REG1)); in sljit_emit_icall()
2141 src = TMP_REG1; in sljit_emit_icall()
2144 FAIL_IF(softfloat_call_with_args(compiler, arg_types, &src)); in sljit_emit_icall()
2151 FAIL_IF(sljit_emit_ijump(compiler, type, src, srcw)); in sljit_emit_icall()
2162 return sljit_emit_ijump(compiler, type, src, srcw); in sljit_emit_icall()
2221 sljit_s32 src, sljit_sw srcw) in sljit_emit_cmov() argument
2226 CHECK(check_sljit_emit_cmov(compiler, type, dst_reg, src, srcw)); in sljit_emit_cmov()
2232 if (!(src & SLJIT_IMM)) { in sljit_emit_cmov()
2234 return push_inst16(compiler, MOV | SET_REGS44(dst_reg, src)); in sljit_emit_cmov()