Lines Matching refs:src1

1585 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)
1592 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1599 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1614 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1629 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1643 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1652 SLJIT_ASSERT(src1 == TMP_REG1 && !(flags & SRC2_IMM));
1663 FAIL_IF(SHRUI(TMP_EREG1, reg_map[src1], 63));
1669 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], src2));
1673 FAIL_IF(ORI(ULESS_FLAG ,reg_map[src1], src2));
1676 FAIL_IF(OR(ULESS_FLAG,reg_map[src1],ULESS_FLAG));
1680 /* dst may be the same as src1 or src2. */
1682 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2));
1692 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1695 if (src1 != dst)
1696 overflow_ra = reg_map[src1];
1701 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1707 FAIL_IF(ADD(EQUAL_FLAG ,reg_map[src1], reg_map[src2]));
1710 FAIL_IF(OR(ULESS_FLAG,reg_map[src1], reg_map[src2]));
1712 /* dst may be the same as src1 or src2. */
1714 FAIL_IF(ADD(reg_map[dst],reg_map[src1], reg_map[src2]));
1735 FAIL_IF(ORI(TMP_EREG1, reg_map[src1], src2));
1738 FAIL_IF(OR(TMP_EREG1, reg_map[src1], TMP_EREG1));
1742 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], src2));
1746 FAIL_IF(OR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1748 /* dst may be the same as src1 or src2. */
1749 FAIL_IF(ADD(reg_map[dst], reg_map[src1], reg_map[src2]));
1775 FAIL_IF(SHRUI(TMP_EREG1,reg_map[src1], 63));
1780 if (src1 != dst)
1781 overflow_ra = reg_map[src1];
1784 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1790 FAIL_IF(ADDLI(EQUAL_FLAG, reg_map[src1], -src2));
1794 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], ADDR_TMP_mapped));
1797 /* dst may be the same as src1 or src2. */
1799 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2));
1804 FAIL_IF(XOR(TMP_EREG1, reg_map[src1], reg_map[src2]));
1807 if (src1 != dst)
1808 overflow_ra = reg_map[src1];
1811 FAIL_IF(ADD(TMP_EREG2, reg_map[src1], ZERO));
1817 FAIL_IF(SUB(EQUAL_FLAG, reg_map[src1], reg_map[src2]));
1820 FAIL_IF(CMPLTU(ULESS_FLAG, reg_map[src1], reg_map[src2]));
1823 FAIL_IF(CMPLTU(UGREATER_FLAG, reg_map[src2], reg_map[src1]));
1826 FAIL_IF(CMPLTS(LESS_FLAG ,reg_map[src1] ,reg_map[src2]));
1827 FAIL_IF(CMPLTS(GREATER_FLAG ,reg_map[src2] ,reg_map[src1]));
1830 /* dst may be the same as src1 or src2. */
1832 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2]));
1853 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], ADDR_TMP_mapped));
1856 /* dst may be the same as src1 or src2. */
1857 FAIL_IF(ADDLI(reg_map[dst], reg_map[src1], -src2));
1861 FAIL_IF(CMPLTU(TMP_EREG1, reg_map[src1], reg_map[src2]));
1862 /* dst may be the same as src1 or src2. */
1863 FAIL_IF(SUB(reg_map[dst], reg_map[src1], reg_map[src2]));
1883 FAIL_IF(MUL(reg_map[dst], reg_map[src1], reg_map[src2]));
1892 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1896 compiler, op_norm, reg_map[dst], reg_map[src1], \
1901 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1905 compiler, op_norm, reg_map[dst], reg_map[src1], \
1925 compiler, op_imm, EQUAL_FLAG, reg_map[src1], \
1929 compiler, op_imm, reg_map[dst], reg_map[src1], \
1934 compiler, op_norm, EQUAL_FLAG, reg_map[src1], \
1938 compiler, op_norm, reg_map[dst], reg_map[src1], \
1959 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)
1998 if (!(flags & SRC2_IMM) && (flags & CUMULATIVE_OP) && (src1 & SLJIT_IMM) && src1w) {
2006 src1 = src2;
2015 if (FAST_IS_REG(src1)) {
2016 src1_r = src1;
2018 } else if (src1 & SLJIT_IMM) {
2025 if (getput_arg_fast(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w))
2059 if (!can_cache(src1, src1w, src2, src2w) && can_cache(src1, src1w, dst, dstw)) {
2060 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG2_mapped, src2, src2w, src1, src1w));
2061 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, dst, dstw));
2063 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, src2, src2w));
2067 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1_mapped, src1, src1w, dst, dstw));
2260 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)
2263 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w));
2265 ADJUST_LOCAL_OFFSET(src1, src1w);
2271 return emit_op(compiler, op, CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2275 return emit_op(compiler, op, IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2278 return emit_op(compiler, op, CUMULATIVE_OP, dst, dstw, src1, src1w, src2, src2w);
2283 return emit_op(compiler, op, CUMULATIVE_OP | LOGICAL_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2293 return emit_op(compiler, op, IMM_OP, dst, dstw, src1, src1w, src2, src2w);
2500 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)