Lines Matching refs:src1
1202 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \ argument
1203 ((sljit_ins)(opcode) | (sljit_ins)(mode) | VD(dst) | VM(src1) | VN(src2))
1224 sljit_s32 src1, sljit_sw src1w,
1594 sljit_uw dst, sljit_uw src1, sljit_uw src2) in emit_single_op() argument
1601 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1612 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1624 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1641 SLJIT_ASSERT(src1 == TMP_REG1 && src2 != TMP_REG2 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1656 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1661 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1670 return push_inst(compiler, CMN | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1671 …return push_inst(compiler, ADD | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1675 …return push_inst(compiler, ADC | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1681 return push_inst(compiler, CMP | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1684 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1689 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1697 return push_inst(compiler, MUL | RN(dst) | RM8(src2) | RM(src1)); in emit_single_op()
1700 FAIL_IF(push_inst(compiler, SMULL | RN(reg) | RD(dst) | RM8(src2) | RM(src1))); in emit_single_op()
1707 return push_inst(compiler, TST | SET_FLAGS | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1709 | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1713 …return push_inst(compiler, ORR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1718 return push_inst(compiler, MVN | (flags & SET_FLAGS) | RD(dst) | RM(src1)); in emit_single_op()
1720 …return push_inst(compiler, EOR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? s… in emit_single_op()
1754 return push_inst(compiler, MLA | RN(dst) | RD(dst) | RM8(src2) | RM(src1)); in emit_single_op()
1764 SLJIT_ASSERT(src1 == TMP_REG1); in emit_single_op()
1772 SLJIT_ASSERT(src1 != TMP_REG2); in emit_single_op()
1780 | RM8(src2) | (sljit_ins)(shift_type << 5) | 0x10 | RM(src1)); in emit_single_op()
2064 sljit_s32 src1, sljit_sw src1w, in emit_op() argument
2137 if (src1 == SLJIT_IMM) { in emit_op()
2141 src1 = src2; in emit_op()
2150 src1 = src2; in emit_op()
2162 src1 = src2; in emit_op()
2193 src2_tmp_reg = FAST_IS_REG(src1) ? TMP_REG1 : TMP_REG2; in emit_op()
2202 if (FAST_IS_REG(src1)) in emit_op()
2203 src1_reg = src1; in emit_op()
2204 else if (src1 & SLJIT_MEM) { in emit_op()
2205 FAIL_IF(emit_op_mem(compiler, inp_flags | LOAD_DATA, TMP_REG1, src1, src1w, TMP_REG1)); in emit_op()
2421 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
2427 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2429 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
2437 …return emit_op(compiler, op, ALLOW_IMM | ALLOW_NEG_IMM | ALLOW_DOUBLE_IMM, dst, dstw, src1, src1w,… in sljit_emit_op2()
2440 return emit_op(compiler, op, ALLOW_IMM | ALLOW_DOUBLE_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2444 if ((src1 == SLJIT_IMM && src1w == -1) || (src2 == SLJIT_IMM && src2w == -1)) { in sljit_emit_op2()
2447 return emit_op(compiler, op, inp_flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2450 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2453 return emit_op(compiler, op, ALLOW_ANY_IMM, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2465 return emit_op(compiler, op, 0, dst, dstw, TMP_REG1, 0, src1, src1w); in sljit_emit_op2()
2468 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2476 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
2480 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2483 return sljit_emit_op2(compiler, op, TMP_REG1, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2488 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2r() argument
2492 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
2493 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2r()
2498 return emit_op(compiler, op, 0, dst_reg, 0, src1, src1w, src2, src2w); in sljit_emit_op2r()
2760 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
2765 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2766 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG1, src1, src1w)); in sljit_emit_fop1_cmp()
2767 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
2775 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VCMP_F32, op & SLJIT_32, src1, src2, 0))); in sljit_emit_fop1_cmp()
2833 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
2839 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2841 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
2853 if (src1 & SLJIT_MEM) { in sljit_emit_fop2()
2854 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG1, src1, src1w)); in sljit_emit_fop2()
2855 src1 = TMP_FREG1; in sljit_emit_fop2()
2860 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VADD_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2863 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VSUB_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2866 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VMUL_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2869 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VDIV_F32, op & SLJIT_32, dst_r, src2, src1))); in sljit_emit_fop2()
2873 FAIL_IF(push_inst(compiler, EMIT_FPU_OPERATION(VABS_F32, op & SLJIT_32, dst_r, src1, 0))); in sljit_emit_fop2()
3541 sljit_s32 src1, sljit_sw src1w, in sljit_emit_select() argument
3547 CHECK(check_sljit_emit_select(compiler, type, dst_reg, src1, src1w, src2_reg)); in sljit_emit_select()
3549 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_select()
3551 if (src2_reg != dst_reg && src1 == dst_reg) { in sljit_emit_select()
3552 src1 = src2_reg; in sljit_emit_select()
3558 if (src1 & SLJIT_MEM) { in sljit_emit_select()
3559 …mpiler, WORD_SIZE | LOAD_DATA, (src2_reg != dst_reg) ? dst_reg : TMP_REG1, src1, src1w, TMP_REG1)); in sljit_emit_select()
3562 src1 = src2_reg; in sljit_emit_select()
3566 src1 = TMP_REG1; in sljit_emit_select()
3574 if (SLJIT_UNLIKELY(src1 == SLJIT_IMM)) { in sljit_emit_select()
3591 src1 = TMP_REG1; in sljit_emit_select()
3595 return push_inst(compiler, ((MOV | RD(dst_reg) | RM(src1)) & ~COND_MASK) | cc); in sljit_emit_select()
3600 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fselect() argument
3606 CHECK(check_sljit_emit_fselect(compiler, type, dst_freg, src1, src1w, src2_freg)); in sljit_emit_fselect()
3608 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fselect()
3613 if (dst_freg == src1) { in sljit_emit_fselect()
3614 src1 = src2_freg; in sljit_emit_fselect()
3621 if (src1 & SLJIT_MEM) { in sljit_emit_fselect()
3622 FAIL_IF(emit_fop_mem(compiler, (type & SLJIT_32) | FPU_LOAD, TMP_FREG2, src1, src1w)); in sljit_emit_fselect()
3623 src1 = TMP_FREG2; in sljit_emit_fselect()
3627 …(compiler, EMIT_FPU_OPERATION((VMOV_F32 & ~COND_MASK) | cc, (type & SLJIT_32), dst_freg, src1, 0)); in sljit_emit_fselect()