Lines Matching refs:src1

1290 			FAIL_IF(push_inst(compiler, op_reg | RD(EQUAL_FLAG) | RJ(src1) | RK(EQUAL_FLAG))); \
1293 if (dst == src1) { \
1295 FAIL_IF(push_inst(compiler, op_reg | RD(dst) | RJ(src1) | RK(TMP_REG1))); \
1298 FAIL_IF(push_inst(compiler, op_reg | RD(dst) | RJ(src1) | RK(dst))); \
1303 FAIL_IF(push_inst(compiler, op_reg | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); \
1305 FAIL_IF(push_inst(compiler, op_reg | RD(dst) | RJ(src1) | RK(src2))); \
1314 sljit_s32 dst, sljit_s32 src1, sljit_sw src2) in emit_single_op() argument
1322 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1328 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1335 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1342 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()
1356 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1363 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1370 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1374 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1378 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1382 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1387 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM)); in emit_single_op()
1392 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM) && dst != TMP_REG1); in emit_single_op()
1397 SLJIT_ASSERT(src1 == TMP_ZERO && !(flags & SRC2_IMM) && dst != TMP_REG1); in emit_single_op()
1409 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(0))); in emit_single_op()
1412 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RJ(src1) | RK(EQUAL_FLAG))); in emit_single_op()
1415 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1419 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(dst) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1422 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1424 FAIL_IF(push_inst(compiler, INST(ADD, op) | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1427 if (src1 != dst) in emit_single_op()
1428 carry_src_r = (sljit_s32)src1; in emit_single_op()
1432 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(OTHER_FLAG) | RJ(src1) | IMM_I12(0))); in emit_single_op()
1439 FAIL_IF(push_inst(compiler, INST(ADD, op) | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1463 FAIL_IF(push_inst(compiler, ADDI_D | RD(dst) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1466 if (src1 != dst) in emit_single_op()
1467 carry_src_r = (sljit_s32)src1; in emit_single_op()
1471 FAIL_IF(push_inst(compiler, ADDI_D | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(0))); in emit_single_op()
1476 FAIL_IF(push_inst(compiler, ADD_D | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1508 FAIL_IF(push_inst(compiler, SLTUI | RD(OTHER_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1511 FAIL_IF(push_inst(compiler, SLTI | RD(OTHER_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1520 reg = (src1 == TMP_REG1) ? TMP_REG2 : TMP_REG1; in emit_single_op()
1528 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1531 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RJ(src2) | RK(src1))); in emit_single_op()
1534 FAIL_IF(push_inst(compiler, SLT | RD(OTHER_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1537 FAIL_IF(push_inst(compiler, SLT | RD(OTHER_FLAG) | RJ(src2) | RK(src1))); in emit_single_op()
1545 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(-src2))); in emit_single_op()
1547 return push_inst(compiler, INST(ADDI, op) | RD(dst) | RJ(src1) | IMM_I12(-src2)); in emit_single_op()
1550 FAIL_IF(push_inst(compiler, INST(SUB, op) | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1552 return push_inst(compiler, INST(SUB, op) | RD(dst) | RJ(src1) | RK(src2)); in emit_single_op()
1563 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(0))); in emit_single_op()
1565 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(-1))); in emit_single_op()
1566 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RJ(src1) | RK(EQUAL_FLAG))); in emit_single_op()
1569 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(-src2))); in emit_single_op()
1572 FAIL_IF(push_inst(compiler, SLTUI | RD(OTHER_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1576 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(dst) | RJ(src1) | IMM_I12(-src2))); in emit_single_op()
1579 FAIL_IF(push_inst(compiler, XOR | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1581 FAIL_IF(push_inst(compiler, INST(SUB, op) | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1584 FAIL_IF(push_inst(compiler, SLTU | RD(OTHER_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1588 FAIL_IF(push_inst(compiler, INST(SUB, op) | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1611 FAIL_IF(push_inst(compiler, SLTUI | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1613 FAIL_IF(push_inst(compiler, INST(ADDI, op) | RD(dst) | RJ(src1) | IMM_I12(-src2))); in emit_single_op()
1616 FAIL_IF(push_inst(compiler, SLTU | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1618 FAIL_IF(push_inst(compiler, INST(SUB, op) | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1635 return push_inst(compiler, INST(MUL, op) | RD(dst) | RJ(src1) | RK(src2)); in emit_single_op()
1638 FAIL_IF(push_inst(compiler, MUL_D | RD(OTHER_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1639 FAIL_IF(push_inst(compiler, MUL_W | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1643 FAIL_IF(push_inst(compiler, MULH_D | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1644 FAIL_IF(push_inst(compiler, MUL_D | RD(dst) | RJ(src1) | RK(src2))); in emit_single_op()
1694 return push_inst(compiler, INST(ROTRI, op) | RD(dst) | RJ(src1) | IMM_I12(src2)); in emit_single_op()
1698 if (dst != src1) in emit_single_op()
1699 return push_inst(compiler, INST(ADDI, op) | RD(dst) | RJ(src1) | IMM_I12(0)); in emit_single_op()
1707 return push_inst(compiler, INST(ROTR, op) | RD(dst) | RJ(src1) | RK(src2)); in emit_single_op()
1716 FAIL_IF(push_inst(compiler, op_imm | RD(EQUAL_FLAG) | RJ(src1) | IMM_I12(src2))); in emit_single_op()
1720 return push_inst(compiler, op_imm | RD(dst) | RJ(src1) | IMM_I12(src2)); in emit_single_op()
1724 FAIL_IF(push_inst(compiler, op_reg | RD(EQUAL_FLAG) | RJ(src1) | RK(src2))); in emit_single_op()
1728 return push_inst(compiler, op_reg | RD(dst) | RJ(src1) | RK(src2)); in emit_single_op()
1735 sljit_s32 src1, sljit_sw src1w, in emit_op() argument
1745 …sljit_s32 src2_tmp_reg = (GET_OPCODE(op) >= SLJIT_OP2_BASE && FAST_IS_REG(src1)) ? TMP_REG1 : TMP_… in emit_op()
1768 …} else if ((flags & CUMULATIVE_OP) && src1 == SLJIT_IMM && src1w != 0 && src1w <= I12_MAX && src1w… in emit_op()
1773 src1 = src2; in emit_op()
1781 if (FAST_IS_REG(src1)) { in emit_op()
1782 src1_r = src1; in emit_op()
1784 } else if (src1 == SLJIT_IMM) { in emit_op()
1792 if (getput_arg_fast(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w)) in emit_op()
1831 …if ((flags & SLOW_DEST) && !can_cache(src2, src2w, src1, src1w) && can_cache(src2, src2w, dst, dst… in emit_op()
1832 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, src2, src2w)); in emit_op()
1835 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG2, src2, src2w, src1, src1w)); in emit_op()
1836 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, dst, dstw)); in emit_op()
1840 FAIL_IF(getput_arg(compiler, flags | LOAD_DATA, TMP_REG1, src1, src1w, dst, dstw)); in emit_op()
1955 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
1961 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
1963 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
1968 if (src1 == SLJIT_IMM) in sljit_emit_op2()
1979 return emit_op(compiler, op, flags | CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1984 return emit_op(compiler, op, flags | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1988 return emit_op(compiler, op, flags | CUMULATIVE_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
1993 return emit_op(compiler, op, flags | CUMULATIVE_OP | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2010 return emit_op(compiler, op, flags | IMM_OP, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2018 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
2022 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2025 return sljit_emit_op2(compiler, op, 0, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2030 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2r() argument
2034 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
2039 …FAIL_IF(sljit_emit_op2(compiler, SLJIT_MUL | (op & SLJIT_32), TMP_REG2, 0, src1, src1w, src2, src2… in sljit_emit_op2r()
2376 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
2379 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
2380 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, src2, src2w)); in sljit_emit_fop1_cmp()
2381 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
2394 …FAIL_IF(push_inst(compiler, FINST(FCMP_COND, op) | COND_CEQ | FCD(F_OTHER_FLAG) | FRJ(src1) | FRK(… in sljit_emit_fop1_cmp()
2398 …FAIL_IF(push_inst(compiler, FINST(FCMP_COND, op) | COND_CLT | FCD(F_OTHER_FLAG) | FRJ(src1) | FRK(… in sljit_emit_fop1_cmp()
2402 …(push_inst(compiler, FINST(FCMP_COND, op) | COND_CLT | FCD(F_OTHER_FLAG) | FRJ(src2) | FRK(src1))); in sljit_emit_fop1_cmp()
2405 …push_inst(compiler, FINST(FCMP_COND, op) | COND_CULT | FCD(F_OTHER_FLAG) | FRJ(src2) | FRK(src1))); in sljit_emit_fop1_cmp()
2408 …FAIL_IF(push_inst(compiler, FINST(FCMP_COND, op) | COND_CULT | FCD(F_OTHER_FLAG) | FRJ(src1) | FRK… in sljit_emit_fop1_cmp()
2411 …FAIL_IF(push_inst(compiler, FINST(FCMP_COND, op) | COND_CUEQ | FCD(F_OTHER_FLAG) | FRJ(src1) | FRK… in sljit_emit_fop1_cmp()
2414 …FAIL_IF(push_inst(compiler, FINST(FCMP_COND, op) | COND_CUN | FCD(F_OTHER_FLAG) | FRJ(src1) | FRK(… in sljit_emit_fop1_cmp()
2471 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
2477 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2479 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
2487 if (src1 & SLJIT_MEM) { in sljit_emit_fop2()
2488 if (getput_arg_fast(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w)) { in sljit_emit_fop2()
2490 src1 = TMP_FREG1; in sljit_emit_fop2()
2504 …if ((dst & SLJIT_MEM) && !can_cache(src1, src1w, src2, src2w) && can_cache(src1, src1w, dst, dstw)… in sljit_emit_fop2()
2505 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG2, src2, src2w, src1, src1w)); in sljit_emit_fop2()
2506 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, dst, dstw)); in sljit_emit_fop2()
2508 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2513 FAIL_IF(getput_arg(compiler, FLOAT_DATA(op) | LOAD_DATA, TMP_FREG1, src1, src1w, dst, dstw)); in sljit_emit_fop2()
2518 src1 = TMP_FREG1; in sljit_emit_fop2()
2524 FAIL_IF(push_inst(compiler, FINST(FADD, op) | FRD(dst_r) | FRJ(src1) | FRK(src2))); in sljit_emit_fop2()
2527 FAIL_IF(push_inst(compiler, FINST(FSUB, op) | FRD(dst_r) | FRJ(src1) | FRK(src2))); in sljit_emit_fop2()
2530 FAIL_IF(push_inst(compiler, FINST(FMUL, op) | FRD(dst_r) | FRJ(src1) | FRK(src2))); in sljit_emit_fop2()
2533 FAIL_IF(push_inst(compiler, FINST(FDIV, op) | FRD(dst_r) | FRJ(src1) | FRK(src2))); in sljit_emit_fop2()
2544 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2r() argument
2550 CHECK(check_sljit_emit_fop2r(compiler, op, dst_freg, src1, src1w, src2, src2w)); in sljit_emit_fop2r()
2551 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2r()
2559 if (src1 & SLJIT_MEM) { in sljit_emit_fop2r()
2561 FAIL_IF(emit_op_mem2(compiler, FLOAT_DATA(op) | LOAD_DATA, reg, src1, src1w, 0, 0)); in sljit_emit_fop2r()
2562 src1 = reg; in sljit_emit_fop2r()
2565 return push_inst(compiler, FINST(FCOPYSIGN, op) | FRD(dst_freg) | FRJ(src1) | FRK(src2)); in sljit_emit_fop2r()
2746 sljit_s32 src1, sljit_sw src1w, in sljit_emit_cmp() argument
2752 sljit_s32 src2_tmp_reg = FAST_IS_REG(src1) ? TMP_REG1 : TMP_REG2; in sljit_emit_cmp()
2755 CHECK_PTR(check_sljit_emit_cmp(compiler, type, src1, src1w, src2, src2w)); in sljit_emit_cmp()
2756 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_cmp()
2764 if (src1 & SLJIT_MEM) { in sljit_emit_cmp()
2765 PTR_FAIL_IF(emit_op_mem2(compiler, flags, TMP_REG1, src1, src1w, src2, src2w)); in sljit_emit_cmp()
2766 src1 = TMP_REG1; in sljit_emit_cmp()
2774 if (src1 == SLJIT_IMM) { in sljit_emit_cmp()
2777 src1 = TMP_REG1; in sljit_emit_cmp()
2780 src1 = TMP_ZERO; in sljit_emit_cmp()
2799 inst = BNE | RJ(src1) | RD(src2); in sljit_emit_cmp()
2802 inst = BEQ | RJ(src1) | RD(src2); in sljit_emit_cmp()
2805 inst = BGEU | RJ(src1) | RD(src2); in sljit_emit_cmp()
2808 inst = BLTU | RJ(src1) | RD(src2); in sljit_emit_cmp()
2811 inst = BGEU | RJ(src2) | RD(src1); in sljit_emit_cmp()
2814 inst = BLTU | RJ(src2) | RD(src1); in sljit_emit_cmp()
2817 inst = BGE | RJ(src1) | RD(src2); in sljit_emit_cmp()
2820 inst = BLT | RJ(src1) | RD(src2); in sljit_emit_cmp()
2823 inst = BGE | RJ(src2) | RD(src1); in sljit_emit_cmp()
2826 inst = BLT | RJ(src2) | RD(src1); in sljit_emit_cmp()
2994 sljit_s32 src1, sljit_sw src1w, in sljit_emit_select() argument
3002 CHECK(check_sljit_emit_select(compiler, type, dst_reg, src1, src1w, src2_reg)); in sljit_emit_select()
3003 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_select()
3006 if (dst_reg == src1) { in sljit_emit_select()
3007 src1 = src2_reg; in sljit_emit_select()
3011 if (ADDRESSING_DEPENDS_ON(src1, dst_reg)) { in sljit_emit_select()
3014 if ((src1 & REG_MASK) == dst_reg) in sljit_emit_select()
3015 src1 = (src1 & ~REG_MASK) | TMP_REG1; in sljit_emit_select()
3017 if (OFFS_REG(src1) == dst_reg) in sljit_emit_select()
3018 src1 = (src1 & ~OFFS_REG_MASK) | TO_OFFS_REG(TMP_REG1); in sljit_emit_select()
3031 if (src1 & SLJIT_MEM) { in sljit_emit_select()
3032 FAIL_IF(emit_op_mem(compiler, inp_flags, dst_reg, src1, src1w)); in sljit_emit_select()
3033 } else if (src1 == SLJIT_IMM) { in sljit_emit_select()
3038 FAIL_IF(push_inst(compiler, ADDI_D | RD(dst_reg) | RJ(src1) | IMM_I12(0))); in sljit_emit_select()
3046 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fselect() argument
3052 CHECK(check_sljit_emit_fselect(compiler, type, dst_freg, src1, src1w, src2_freg)); in sljit_emit_fselect()
3054 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fselect()
3066 if (src1 & SLJIT_MEM) { in sljit_emit_fselect()
3067 FAIL_IF(emit_op_mem(compiler, FLOAT_DATA(type) | LOAD_DATA, TMP_FREG2, src1, src1w)); in sljit_emit_fselect()
3073 … return push_inst(compiler, FSEL | FRD(dst_freg) | FRJ(src1) | FRK(src2_freg) | FCA(F_OTHER_FLAG)); in sljit_emit_fselect()
3074 return push_inst(compiler, FSEL | FRD(dst_freg) | FRJ(src2_freg) | FRK(src1) | FCA(F_OTHER_FLAG)); in sljit_emit_fselect()