Lines Matching refs:src1

1271 			FAIL_IF(push_inst(compiler, op_imm | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(src2))); \
1273 FAIL_IF(push_inst(compiler, op_imm | RD(dst) | RS1(src1) | IMM_I(src2))); \
1277 FAIL_IF(push_inst(compiler, op_reg | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); \
1279 FAIL_IF(push_inst(compiler, op_reg | RD(dst) | RS1(src1) | RS2(src2))); \
1287 sljit_s32 dst, sljit_s32 src1, sljit_sw src2) in emit_single_op() argument
1299 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1305 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1312 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1321 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1330 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1340 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1349 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1358 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1366 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1371 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1376 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM) && dst != TMP_REG1); in emit_single_op()
1392 FAIL_IF(push_inst(compiler, ADDI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(0))); in emit_single_op()
1394 FAIL_IF(push_inst(compiler, XORI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(-1))); in emit_single_op()
1397 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1401 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1405 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1407 FAIL_IF(push_inst(compiler, ADD | WORD | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1410 if (src1 != dst) in emit_single_op()
1411 carry_src_r = (sljit_s32)src1; in emit_single_op()
1415 FAIL_IF(push_inst(compiler, ADDI | RD(OTHER_FLAG) | RS1(src1) | IMM_I(0))); in emit_single_op()
1422 FAIL_IF(push_inst(compiler, ADD | WORD | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1446 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1449 if (src1 != dst) in emit_single_op()
1450 carry_src_r = (sljit_s32)src1; in emit_single_op()
1454 FAIL_IF(push_inst(compiler, ADDI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(0))); in emit_single_op()
1459 FAIL_IF(push_inst(compiler, ADD | WORD | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1491 FAIL_IF(push_inst(compiler, SLTUI | RD(OTHER_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1495 FAIL_IF(push_inst(compiler, SLTI | RD(OTHER_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1504 reg = (src1 == TMP_REG1) ? TMP_REG2 : TMP_REG1; in emit_single_op()
1512 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1515 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RS1(src2) | RS2(src1))); in emit_single_op()
1518 FAIL_IF(push_inst(compiler, SLT | RD(OTHER_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1521 FAIL_IF(push_inst(compiler, SLT | RD(OTHER_FLAG) | RS1(src2) | RS2(src1))); in emit_single_op()
1529 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(-src2))); in emit_single_op()
1531 return push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(-src2)); in emit_single_op()
1535 FAIL_IF(push_inst(compiler, SUB | WORD | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1537 return push_inst(compiler, SUB | WORD | RD(dst) | RS1(src1) | RS2(src2)); in emit_single_op()
1548 FAIL_IF(push_inst(compiler, ADDI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(0))); in emit_single_op()
1550 FAIL_IF(push_inst(compiler, XORI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(-1))); in emit_single_op()
1553 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(-src2))); in emit_single_op()
1556 FAIL_IF(push_inst(compiler, SLTUI | RD(OTHER_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1560 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(-src2))); in emit_single_op()
1564 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1566 FAIL_IF(push_inst(compiler, SUB | WORD | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1569 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1573 FAIL_IF(push_inst(compiler, SUB | WORD | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1596 FAIL_IF(push_inst(compiler, SLTUI | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1598 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(-src2))); in emit_single_op()
1602 FAIL_IF(push_inst(compiler, SLTU | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1604 FAIL_IF(push_inst(compiler, SUB | WORD | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1621 return push_inst(compiler, MUL | WORD | RD(dst) | RS1(src1) | RS2(src2)); in emit_single_op()
1625 FAIL_IF(push_inst(compiler, MUL | RD(OTHER_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1626 FAIL_IF(push_inst(compiler, MUL | 0x8 | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1631 FAIL_IF(push_inst(compiler, MULH | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1632 FAIL_IF(push_inst(compiler, MUL | RD(dst) | RS1(src1) | RS2(src2))); in emit_single_op()
1673 FAIL_IF(push_inst(compiler, op_imm | WORD | RD(OTHER_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1681 FAIL_IF(push_inst(compiler, op_imm | WORD | RD(dst) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1686 if (dst != src1) in emit_single_op()
1687 return push_inst(compiler, ADDI | WORD | RD(dst) | RS1(src1) | IMM_I(0)); in emit_single_op()
1693 FAIL_IF(push_inst(compiler, op_reg | WORD | RD(OTHER_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1695 FAIL_IF(push_inst(compiler, op_reg | WORD | RD(dst) | RS1(src1) | RS2(EQUAL_FLAG))); in emit_single_op()
1705 FAIL_IF(push_inst(compiler, op_imm | WORD | RD(EQUAL_FLAG) | RS1(src1) | IMM_I(src2))); in emit_single_op()
1709 return push_inst(compiler, op_imm | WORD | RD(dst) | RS1(src1) | IMM_I(src2)); in emit_single_op()
1713 FAIL_IF(push_inst(compiler, op_reg | WORD | RD(EQUAL_FLAG) | RS1(src1) | RS2(src2))); in emit_single_op()
1717 return push_inst(compiler, op_reg | WORD | RD(dst) | RS1(src1) | RS2(src2)); in emit_single_op()
1724 sljit_s32 src1, sljit_sw src1w, in emit_op() argument
1734 …sljit_s32 src2_tmp_reg = (GET_OPCODE(op) >= SLJIT_OP2_BASE && FAST_IS_REG(src1)) ? TMP_REG1 : TMP_… in emit_op()
1760 …else if ((flags & CUMULATIVE_OP) && src1 == SLJIT_IMM && src1w != 0 && src1w <= SIMM_MAX && src1w … in emit_op()
1765 src1 = src2; in emit_op()
1773 if (FAST_IS_REG(src1)) { in emit_op()
1774 src1_r = src1; in emit_op()
1776 } else if (src1 == SLJIT_IMM) { in emit_op()
1784 if (getput_arg_fast(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w)) in emit_op()
1822 …if ((flags & SLOW_DEST) && !can_cache(src2, src2w, src1, src1w) && can_cache(src2, src2w, dst, dst… in emit_op()
1823 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, src2, src2w)); in emit_op()
1826 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG2, src2, src2w, src1, src1w)); in emit_op()
1827 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, dst, dstw)); in emit_op()
1831 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, dst, dstw)); in emit_op()
1960 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
1966 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1968 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
1974 if (src1 == SLJIT_IMM) in sljit_emit_op2()
1985 return emit_op(compiler, op, flags | CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1990 return emit_op(compiler, op, flags | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1994 return emit_op(compiler, op, flags | CUMULATIVE_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1999 return emit_op(compiler, op, flags | CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2020 return emit_op(compiler, op, flags | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2028 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
2032 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2035 return sljit_emit_op2(compiler, op, 0, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2040 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2r() argument
2048 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
2055 …FAIL_IF(sljit_emit_op2(compiler, SLJIT_MUL | (op & SLJIT_32), TMP_REG2, 0, src1, src1w, src2, src2… in sljit_emit_op2r()
2334 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
2339 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2340 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, src2, src2w)); in sljit_emit_fop1_cmp()
2341 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
2352 inst = FEQ_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src2); in sljit_emit_fop1_cmp()
2356 inst = FLT_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src2); in sljit_emit_fop1_cmp()
2359 inst = FLT_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src2) | FRS2(src1); in sljit_emit_fop1_cmp()
2363 inst = FLE_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src2); in sljit_emit_fop1_cmp()
2366 inst = FLE_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src2) | FRS2(src1); in sljit_emit_fop1_cmp()
2369 FAIL_IF(push_inst(compiler, FLT_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src2))); in sljit_emit_fop1_cmp()
2370 FAIL_IF(push_inst(compiler, FLT_S | FMT(op) | RD(TMP_REG1) | FRS1(src2) | FRS2(src1))); in sljit_emit_fop1_cmp()
2374 if (src1 == src2) { in sljit_emit_fop1_cmp()
2375 inst = FEQ_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src1); in sljit_emit_fop1_cmp()
2378 FAIL_IF(push_inst(compiler, FEQ_S | FMT(op) | RD(OTHER_FLAG) | FRS1(src1) | FRS2(src1))); in sljit_emit_fop1_cmp()
2439 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
2445 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2447 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
2455 if (src1 & SLJIT_MEM) { in sljit_emit_fop2()
2456 if (getput_arg_fast(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w)) { in sljit_emit_fop2()
2458 src1 = TMP_FREG1; in sljit_emit_fop2()
2472 …if ((dst & SLJIT_MEM) && !can_cache(src1, src1w, src2, src2w) && can_cache(src1, src1w, dst, dstw)… in sljit_emit_fop2()
2473 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG2, src2, src2w, src1, src1w)); in sljit_emit_fop2()
2474 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, dst, dstw)); in sljit_emit_fop2()
2476 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2481 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, dst, dstw)); in sljit_emit_fop2()
2486 src1 = TMP_FREG1; in sljit_emit_fop2()
2492 FAIL_IF(push_inst(compiler, FADD_S | FMT(op) | FRD(dst_r) | FRS1(src1) | FRS2(src2))); in sljit_emit_fop2()
2496 FAIL_IF(push_inst(compiler, FSUB_S | FMT(op) | FRD(dst_r) | FRS1(src1) | FRS2(src2))); in sljit_emit_fop2()
2500 FAIL_IF(push_inst(compiler, FMUL_S | FMT(op) | FRD(dst_r) | FRS1(src1) | FRS2(src2))); in sljit_emit_fop2()
2504 FAIL_IF(push_inst(compiler, FDIV_S | FMT(op) | FRD(dst_r) | FRS1(src1) | FRS2(src2))); in sljit_emit_fop2()
2508 return push_inst(compiler, FSGNJ_S | FMT(op) | FRD(dst_r) | FRS1(src1) | FRS2(src2)); in sljit_emit_fop2()
2663 sljit_s32 src1, sljit_sw src1w, in sljit_emit_cmp() argument
2669 sljit_s32 src2_tmp_reg = FAST_IS_REG(src1) ? TMP_REG1 : TMP_REG2; in sljit_emit_cmp()
2672 CHECK_PTR(check_sljit_emit_cmp(compiler, type, src1, src1w, src2, src2w)); in sljit_emit_cmp()
2673 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_cmp()
2684 if (src1 & SLJIT_MEM) { in sljit_emit_cmp()
2685 PTR_FAIL_IF(emit_op_mem2(compiler, flags, TMP_REG1, src1, src1w, src2, src2w)); in sljit_emit_cmp()
2686 src1 = TMP_REG1; in sljit_emit_cmp()
2694 if (src1 == SLJIT_IMM) { in sljit_emit_cmp()
2697 src1 = TMP_REG1; in sljit_emit_cmp()
2700 src1 = TMP_ZERO; in sljit_emit_cmp()
2719 inst = BNE | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2722 inst = BEQ | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2725 inst = BGEU | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2728 inst = BLTU | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2731 inst = BGEU | RS1(src2) | RS2(src1) | BRANCH_LENGTH; in sljit_emit_cmp()
2734 inst = BLTU | RS1(src2) | RS2(src1) | BRANCH_LENGTH; in sljit_emit_cmp()
2737 inst = BGE | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2740 inst = BLT | RS1(src1) | RS2(src2) | BRANCH_LENGTH; in sljit_emit_cmp()
2743 inst = BGE | RS1(src2) | RS2(src1) | BRANCH_LENGTH; in sljit_emit_cmp()
2746 inst = BLT | RS1(src2) | RS2(src1) | BRANCH_LENGTH; in sljit_emit_cmp()
2909 sljit_s32 src1, sljit_sw src1w, in sljit_emit_select() argument
2924 CHECK(check_sljit_emit_select(compiler, type, dst_reg, src1, src1w, src2_reg)); in sljit_emit_select()
2926 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_select()
2929 if (dst_reg == src1) { in sljit_emit_select()
2930 src1 = src2_reg; in sljit_emit_select()
2934 if (ADDRESSING_DEPENDS_ON(src1, dst_reg)) { in sljit_emit_select()
2937 if ((src1 & REG_MASK) == dst_reg) in sljit_emit_select()
2938 src1 = (src1 & ~REG_MASK) | TMP_REG1; in sljit_emit_select()
2940 if (OFFS_REG(src1) == dst_reg) in sljit_emit_select()
2941 src1 = (src1 & ~OFFS_REG_MASK) | TO_OFFS_REG(TMP_REG1); in sljit_emit_select()
2954 if (src1 & SLJIT_MEM) { in sljit_emit_select()
2955 FAIL_IF(emit_op_mem(compiler, inp_flags, dst_reg, src1, src1w)); in sljit_emit_select()
2956 } else if (src1 == SLJIT_IMM) { in sljit_emit_select()
2963 FAIL_IF(push_inst(compiler, ADDI | WORD | RD(dst_reg) | RS1(src1) | IMM_I(0))); in sljit_emit_select()
2974 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fselect() argument
2981 CHECK(check_sljit_emit_fselect(compiler, type, dst_freg, src1, src1w, src2_freg)); in sljit_emit_fselect()
2983 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fselect()
2986 if (dst_freg == src1) { in sljit_emit_fselect()
2987 src1 = src2_freg; in sljit_emit_fselect()
3000 if (src1 & SLJIT_MEM) in sljit_emit_fselect()
3001 FAIL_IF(emit_op_mem(compiler, FLOAT_DATA(type) | LOAD_DATA, dst_freg, src1, src1w)); in sljit_emit_fselect()
3003 FAIL_IF(push_inst(compiler, FSGNJ_S | FMT(type) | FRD(dst_freg) | FRS1(src1) | FRS2(src1))); in sljit_emit_fselect()