Lines Matching refs:src2
628 sljit_uw src2; in set_const_value() local
632 src2 = get_imm(new_constant); in set_const_value()
633 if (src2) { in set_const_value()
638 *inst = 0xe3a00000 | (ldr_literal & 0xf000) | src2; in set_const_value()
648 src2 = get_imm(~new_constant); in set_const_value()
649 if (src2) { in set_const_value()
654 *inst = 0xe3e00000 | (ldr_literal & 0xf000) | src2; in set_const_value()
1202 #define EMIT_FPU_OPERATION(opcode, mode, dst, src1, src2) \ argument
1203 ((sljit_ins)(opcode) | (sljit_ins)(mode) | VD(dst) | VM(src1) | VN(src2))
1225 sljit_s32 src2, sljit_sw src2w);
1594 sljit_uw dst, sljit_uw src1, sljit_uw src2) in emit_single_op() argument
1602 if (dst != src2) { in emit_single_op()
1603 if (src2 & SRC2_IMM) { in emit_single_op()
1604 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1606 return push_inst(compiler, MOV | RD(dst) | RM(src2)); in emit_single_op()
1614 return push_inst(compiler, (op == SLJIT_MOV_U8 ? UXTB : SXTB) | RD(dst) | RM(src2)); in emit_single_op()
1616 if (dst != src2) { in emit_single_op()
1617 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1618 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1626 return push_inst(compiler, (op == SLJIT_MOV_U16 ? UXTH : SXTH) | RD(dst) | RM(src2)); in emit_single_op()
1628 if (dst != src2) { in emit_single_op()
1629 SLJIT_ASSERT(src2 & SRC2_IMM); in emit_single_op()
1630 return push_inst(compiler, ((flags & INV_IMM) ? MVN : MOV) | RD(dst) | src2); in emit_single_op()
1635 SLJIT_ASSERT(!(flags & INV_IMM) && !(src2 & SRC2_IMM)); in emit_single_op()
1636 FAIL_IF(push_inst(compiler, CLZ | RD(dst) | RM(src2))); in emit_single_op()
1640 SLJIT_ASSERT(!(flags & INV_IMM) && !(src2 & SRC2_IMM)); in emit_single_op()
1641 SLJIT_ASSERT(src1 == TMP_REG1 && src2 != TMP_REG2 && !(flags & ARGS_SWAPPED)); in emit_single_op()
1643 FAIL_IF(push_inst(compiler, RSB | SRC2_IMM | RD(TMP_REG2) | RN(src2) | 0)); in emit_single_op()
1644 FAIL_IF(push_inst(compiler, AND | RD(TMP_REG1) | RN(src2) | RM(TMP_REG2))); in emit_single_op()
1649 FAIL_IF(push_inst(compiler, RBIT | RD(dst) | RM(src2))); in emit_single_op()
1657 return push_inst(compiler, REV | RD(dst) | RM(src2)); in emit_single_op()
1662 FAIL_IF(push_inst(compiler, REV16 | RD(dst) | RM(src2))); 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 …(compiler, ADD | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1675 …(compiler, ADC | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); 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()
1693 SLJIT_ASSERT(!(src2 & SRC2_IMM)); 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 …(compiler, ORR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1717 SLJIT_ASSERT(src2 == SRC2_IMM); in emit_single_op()
1720 …(compiler, EOR | (flags & SET_FLAGS) | RD(dst) | RN(src1) | ((src2 & SRC2_IMM) ? src2 : RM(src2))); in emit_single_op()
1742 FAIL_IF(push_inst(compiler, RSB | SRC2_IMM | RD(TMP_REG2) | RN(src2) | 0)); in emit_single_op()
1743 src2 = TMP_REG2; in emit_single_op()
1754 return push_inst(compiler, MLA | RN(dst) | RD(dst) | RM8(src2) | RM(src1)); in emit_single_op()
1761 SLJIT_ASSERT(!(flags & ARGS_SWAPPED) && !(flags & INV_IMM) && !(src2 & SRC2_IMM)); in emit_single_op()
1768 RD(dst) | (compiler->shift_imm << 7) | (shift_type << 5) | RM(src2)); in emit_single_op()
1769 return push_inst(compiler, MOV | (flags & SET_FLAGS) | RD(dst) | RM(src2)); in emit_single_op()
1775 FAIL_IF(push_inst(compiler, AND | RD(TMP_REG2) | RN(src2) | SRC2_IMM | 0x1f)); in emit_single_op()
1776 src2 = TMP_REG2; in emit_single_op()
1780 | RM8(src2) | (sljit_ins)(shift_type << 5) | 0x10 | RM(src1)); in emit_single_op()
2065 sljit_s32 src2, sljit_sw src2w) in emit_op() argument
2115 if (src2 == SLJIT_IMM) { in emit_op()
2141 src1 = src2; in emit_op()
2150 src1 = src2; in emit_op()
2162 src1 = src2; in emit_op()
2179 if (FAST_IS_REG(src2)) in emit_op()
2180 return emit_op_mem(compiler, inp_flags, src2, dst, dstw, TMP_REG1); in emit_op()
2183 if (FAST_IS_REG(src2) && dst_reg != TMP_REG2) in emit_op()
2189 if (!(dst & SLJIT_MEM) && (!(src2 & SLJIT_MEM) || op == SLJIT_REV_S16)) in emit_op()
2196 if (src2_reg == 0 && (src2 & SLJIT_MEM)) { in emit_op()
2198 FAIL_IF(emit_op_mem(compiler, inp_flags | LOAD_DATA, src2_reg, src2, src2w, TMP_REG1)); in emit_op()
2216 if (FAST_IS_REG(src2)) in emit_op()
2217 src2_reg = src2; in emit_op()
2422 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2() argument
2427 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2430 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_op2()
2437 …p(compiler, op, ALLOW_IMM | ALLOW_NEG_IMM | ALLOW_DOUBLE_IMM, dst, dstw, src1, src1w, src2, src2w); 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()
2463 if (src2 == SLJIT_IMM) { in sljit_emit_op2()
2468 return emit_op(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2477 sljit_s32 src2, sljit_sw src2w) 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()
2489 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2r() argument
2492 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
2494 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_op2r()
2498 return emit_op(compiler, op, 0, dst_reg, 0, src1, src1w, src2, src2w); in sljit_emit_op2r()
2761 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop1_cmp() argument
2770 if (src2 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2771 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop1_cmp()
2772 src2 = TMP_FREG2; 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()
2834 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop2() argument
2839 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2842 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_fop2()
2848 if (src2 & SLJIT_MEM) { in sljit_emit_fop2()
2849 FAIL_IF(emit_fop_mem(compiler, (op & SLJIT_32) | FPU_LOAD, TMP_FREG2, src2, src2w)); in sljit_emit_fop2()
2850 src2 = TMP_FREG2; 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()
2872 …FAIL_IF(push_inst(compiler, VMOV | (1 << 20) | VN(src2) | RD(TMP_REG1) | ((op & SLJIT_32) ? (1 << … in sljit_emit_fop2()