Lines Matching refs:src1
1587 static SLJIT_INLINE sljit_s32 emit_single_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags, sljit_s32 dst, sljit_s32 src1, sljit_sw src2)
1594 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1601 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1616 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1631 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1645 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1654 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1665 FAIL_IF(SHRUI(TMP_EREG1, reg_map[src1], 63));
1671 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], src2));
1675 FAIL_IF(ORI(ULESS_FLAG ,reg_map[src1], src2));
1678 FAIL_IF(OR(ULESS_FLAG,reg_map[src1],ULESS_FLAG));
1682 /* dst may be the same as src1 or src2. */
1684 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2));
1694 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1697 if (src1 != dst)
1698 overflow_ra = reg_map[src1];
1703 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1709 FAIL_IF(ADD(EQUAL_FLAG ,reg_map[src1], reg_map[src2]));
1712 FAIL_IF(OR(ULESS_FLAG,reg_map[src1], reg_map[src2]));
1714 /* dst may be the same as src1 or src2. */
1716 FAIL_IF(ADD(reg_map[dst],reg_map[src1], reg_map[src2]));
1737 FAIL_IF(ORI(TMP_EREG1, reg_map[src1], src2));
1740 FAIL_IF(OR(TMP_EREG1, reg_map[src1], TMP_EREG1));
1744 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2));
1748 FAIL_IF(OR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1750 /* dst may be the same as src1 or src2. */
1751 FAIL_IF(ADD(reg_map[dst], reg_map[src1], reg_map[src2]));
1777 FAIL_IF(SHRUI(TMP_EREG1,reg_map[src1], 63));
1782 if (src1 != dst)
1783 overflow_ra = reg_map[src1];
1786 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1792 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], -src2));
1796 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], ADDR_TMP_mapped));
1799 /* dst may be the same as src1 or src2. */
1801 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2));
1806 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1809 if (src1 != dst)
1810 overflow_ra = reg_map[src1];
1813 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1819 FAIL_IF(SUB(EQUAL_FLAG, reg_map[src1], reg_map[src2]));
1822 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], reg_map[src2]));
1825 FAIL_IF(CMPLTU(UGREATER_FLAG, reg_map[src2], reg_map[src1]));
1828 FAIL_IF(CMPLTS(LESS_FLAG ,reg_map[src1] ,reg_map[src2]));
1829 FAIL_IF(CMPLTS(GREATER_FLAG ,reg_map[src2] ,reg_map[src1]));
1832 /* dst may be the same as src1 or src2. */
1834 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2]));
1855 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], ADDR_TMP_mapped));
1858 /* dst may be the same as src1 or src2. */
1859 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2));
1863 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], reg_map[src2]));
1864 /* dst may be the same as src1 or src2. */
1865 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2]));
1885 FAIL_IF(MUL(reg_map[dst], reg_map[src1], reg_map[src2]));
1894 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1898 compiler, op_norm, reg_map[dst], reg_map[src1], \
1903 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1907 compiler, op_norm, reg_map[dst], reg_map[src1], \
1927 compiler, op_imm, EQUAL_FLAG, reg_map[src1], \
1931 compiler, op_imm, reg_map[dst], reg_map[src1], \
1936 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1940 compiler, op_norm, reg_map[dst], reg_map[src1], \
1961 static sljit_s32 emit_op(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 flags, sljit_s32 dst, sljit_sw dstw, sljit_s32 src1, sljit_sw src1w, sljit_s32 src2, sljit_sw src2w)
2000 if (!(flags & SRC2_IMM) && (flags & CUMULATIVE_OP) && (src1 & SLJIT_IMM) && src1w) {
2008 src1 = src2;
2017 if (FAST_IS_REG(src1)) {
2018 src1_r = src1;
2020 } else if (src1 & SLJIT_IMM) {
2027 if (getput_arg_fast(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w))
2061 if (!can_cache(src1, src1w, src2, src2w) && can_cache(src1, src1w, dst, dstw)) {
2062 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG2_mapped, src2, src2w, src1, src1w));
2063 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, dst, dstw));
2065 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, src2, src2w));
2069 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, dst, dstw));
2262 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_op2(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 dst, sljit_sw dstw, sljit_s32 src1, sljit_sw src1w, sljit_s32 src2, sljit_sw src2w)
2265 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w));
2267 ADJUST_LOCAL_OFFSET(src1, src1w);
2273 return emit_op(compiler, op, CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2277 return emit_op(compiler, op, IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2280 return emit_op(compiler, op, CUMULATIVE_OP, dst, dstw, src1, src1w, src2, src2w);
2285 return emit_op(compiler, op, CUMULATIVE_OP | LOGICAL_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2295 return emit_op(compiler, op, IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2502 SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_fop2(struct sljit_compiler *compiler, sljit_s32 op, sljit_s32 dst, sljit_sw dstw, sljit_s32 src1, sljit_sw src1w, sljit_s32 src2, sljit_sw src2w)