Lines Matching refs:src1
1296 sljit_s32 src1, sljit_sw src1w, in emit_op() argument
1305 …_flags & ALT_SIGN_EXT) && GET_OPCODE(op) >= SLJIT_OP2_BASE && FAST_IS_REG(src1)) ? TMP_REG1 : TMP_… in emit_op()
1338 if (FAST_IS_REG(src1)) { in emit_op()
1339 src1_r = src1; in emit_op()
1341 } else if (src1 == SLJIT_IMM) { in emit_op()
1348 FAIL_IF(emit_op_mem(compiler, input_flags | LOAD_DATA, TMP_REG1, src1, src1w, TMP_REG1)); in emit_op()
1711 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
1717 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1719 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
1726 if (src1 == SLJIT_IMM) in sljit_emit_op2()
1742 return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM1, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1744 if (!HAS_FLAGS(op) && (src1 == SLJIT_IMM || src2 == SLJIT_IMM)) { in sljit_emit_op2()
1747 return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM2, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1749 if (TEST_SL_IMM(src1, src1w)) { in sljit_emit_op2()
1755 …return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM2 | ALT_FORM3, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1757 if (TEST_SH_IMM(src1, src1w)) { in sljit_emit_op2()
1764 …return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM2 | ALT_FORM4, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1766 if (TEST_ADD_IMM(src1, src1w)) { in sljit_emit_op2()
1776 …return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM4 | ALT_FORM5, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1778 if (TEST_SL_IMM(src1, src1w)) { in sljit_emit_op2()
1782 return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM4, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1788 return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM3, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1790 if (TEST_SL_IMM(src1, src1w)) { in sljit_emit_op2()
1795 … flags | ((GET_FLAG_TYPE(op) == SLJIT_CARRY) ? ALT_FORM5 : 0), dst, dstw, src1, src1w, src2, src2w… in sljit_emit_op2()
1799 return emit_op(compiler, SLJIT_ADDC, flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1808 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM1 | ALT_FORM2, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1810 return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM1, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1815 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM1 | ALT_FORM2 | ALT_FORM3, dst, dstw, src1, sr… in sljit_emit_op2()
1817 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM1 | ALT_FORM3, dst, dstw, src1, src1w, src2, s… in sljit_emit_op2()
1823 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM2 | ALT_FORM3, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1825 return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM2, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1831 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM2 | ALT_FORM3 | ALT_FORM4, dst, dstw, src1, sr… in sljit_emit_op2()
1833 …return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM2 | ALT_FORM4, dst, dstw, src1, src1w, src2, s… in sljit_emit_op2()
1837 return emit_op(compiler, SLJIT_SUB, flags | ALT_FORM3, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1841 …, SLJIT_ADD, flags | (!HAS_FLAGS(op) ? ALT_FORM2 : ALT_FORM3), dst, dstw, src1, src1w, TMP_REG2, 0… in sljit_emit_op2()
1844 if (TEST_SL_IMM(src1, src1w) && !(op & SLJIT_SET_Z)) { in sljit_emit_op2()
1852 …return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM2 | ALT_FORM3, dst, dstw, src1, src1w, TMP_RE… in sljit_emit_op2()
1857 …return emit_op(compiler, SLJIT_ADD, flags | ALT_FORM2 | ALT_FORM4, dst, dstw, src1, src1w, TMP_REG… in sljit_emit_op2()
1862 … flags | ((GET_FLAG_TYPE(op) == SLJIT_CARRY) ? ALT_FORM5 : 0), dst, dstw, src1, src1w, src2, src2w… in sljit_emit_op2()
1866 return emit_op(compiler, SLJIT_SUBC, flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1876 return emit_op(compiler, SLJIT_MUL, flags | ALT_FORM1, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1878 if (TEST_SL_IMM(src1, src1w)) { in sljit_emit_op2()
1885 return emit_op(compiler, SLJIT_MUL, flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1889 return emit_op(compiler, GET_OPCODE(op), flags | ALT_FORM4, dst, dstw, TMP_REG1, 0, src1, src1w); in sljit_emit_op2()
1891 if (src1 == SLJIT_IMM && src1w == -1) { in sljit_emit_op2()
1901 … return emit_op(compiler, GET_OPCODE(op), flags | ALT_FORM1, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1903 if (TEST_UL_IMM(src1, src1w)) { in sljit_emit_op2()
1909 … return emit_op(compiler, GET_OPCODE(op), flags | ALT_FORM2, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1911 if (TEST_UH_IMM(src1, src1w)) { in sljit_emit_op2()
1920 … return emit_op(compiler, GET_OPCODE(op), flags | ALT_FORM3, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1922 if (TEST_UI_IMM(src1, src1w)) { in sljit_emit_op2()
1927 return emit_op(compiler, GET_OPCODE(op), flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1943 return emit_op(compiler, GET_OPCODE(op), flags | ALT_FORM1, dst, dstw, src1, src1w, TMP_REG2, 0); in sljit_emit_op2()
1945 return emit_op(compiler, GET_OPCODE(op), flags, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1952 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
1956 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
1959 return sljit_emit_op2(compiler, op, TMP_REG1, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
1968 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2r() argument
1972 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
1977 …FAIL_IF(sljit_emit_op2(compiler, SLJIT_MUL | (op & SLJIT_32), TMP_REG2, 0, src1, src1w, src2, src2… in sljit_emit_op2r()
2236 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
2239 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2240 FAIL_IF(emit_op_mem(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, TMP_REG1)); in sljit_emit_fop1_cmp()
2241 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
2249 FAIL_IF(push_inst(compiler, FCMPU | CRD(4) | FA(src1) | FB(src2))); in sljit_emit_fop1_cmp()
2315 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
2321 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2323 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
2328 if (src1 & SLJIT_MEM) { in sljit_emit_fop2()
2329 FAIL_IF(emit_op_mem(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, TMP_REG1)); in sljit_emit_fop2()
2330 src1 = TMP_FREG1; in sljit_emit_fop2()
2340 FAIL_IF(push_inst(compiler, SELECT_FOP(op, FADDS, FADD) | FD(dst_r) | FA(src1) | FB(src2))); in sljit_emit_fop2()
2343 FAIL_IF(push_inst(compiler, SELECT_FOP(op, FSUBS, FSUB) | FD(dst_r) | FA(src1) | FB(src2))); in sljit_emit_fop2()
2346 …FAIL_IF(push_inst(compiler, SELECT_FOP(op, FMULS, FMUL) | FD(dst_r) | FA(src1) | FC(src2) /* FMUL … in sljit_emit_fop2()
2349 FAIL_IF(push_inst(compiler, SELECT_FOP(op, FDIVS, FDIV) | FD(dst_r) | FA(src1) | FB(src2))); in sljit_emit_fop2()
2358 FAIL_IF(push_inst(compiler, FABS | FD(dst_r) | FB(src1))); in sljit_emit_fop2()
2795 sljit_s32 src1, sljit_sw src1w, in sljit_emit_select() argument
2807 CHECK(check_sljit_emit_select(compiler, type, dst_reg, src1, src1w, src2_reg)); in sljit_emit_select()
2809 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_select()
2812 if (dst_reg == src1) { in sljit_emit_select()
2813 src1 = src2_reg; in sljit_emit_select()
2817 if (ADDRESSING_DEPENDS_ON(src1, dst_reg)) { in sljit_emit_select()
2820 if ((src1 & REG_MASK) == dst_reg) in sljit_emit_select()
2821 src1 = (src1 & ~REG_MASK) | TMP_REG1; in sljit_emit_select()
2823 if (OFFS_REG(src1) == dst_reg) in sljit_emit_select()
2824 src1 = (src1 & ~OFFS_REG_MASK) | TO_OFFS_REG(TMP_REG1); in sljit_emit_select()
2840 if (src1 & SLJIT_MEM) { in sljit_emit_select()
2841 FAIL_IF(emit_op_mem(compiler, inp_flags, dst_reg, src1, src1w, TMP_REG1)); in sljit_emit_select()
2842 } else if (src1 == SLJIT_IMM) { in sljit_emit_select()
2849 FAIL_IF(push_inst(compiler, OR | S(src1) | A(dst_reg) | B(src1))); in sljit_emit_select()
2857 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fselect() argument
2864 CHECK(check_sljit_emit_fselect(compiler, type, dst_freg, src1, src1w, src2_freg)); in sljit_emit_fselect()
2866 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fselect()
2869 if (dst_freg == src1) { in sljit_emit_fselect()
2870 src1 = src2_freg; in sljit_emit_fselect()
2886 if (src1 & SLJIT_MEM) in sljit_emit_fselect()
2887 FAIL_IF(emit_op_mem(compiler, FLOAT_DATA(type) | LOAD_DATA, dst_freg, src1, src1w, TMP_REG1)); in sljit_emit_fselect()
2889 FAIL_IF(push_inst(compiler, FMR | FD(dst_freg) | FB(src1))); in sljit_emit_fselect()