Lines Matching refs:src2

1047 	sljit_s32 src2, sljit_sw src2w)  in emit_rr()  argument
1058 else if (dst == src2) { in emit_rr()
1067 if (FAST_IS_REG(src2)) in emit_rr()
1068 src_r = gpr(src2); in emit_rr()
1070 FAIL_IF(emit_move(compiler, tmp1, src2, src2w)); in emit_rr()
1099 sljit_s32 src2, sljit_sw src2w) in emit_rrf() argument
1110 if (FAST_IS_REG(src2)) in emit_rrf()
1111 src2_r = gpr(src2); in emit_rrf()
1113 FAIL_IF(emit_move(compiler, tmp1, src2, src2w)); in emit_rrf()
1171 sljit_s32 src2, sljit_sw src2w, in emit_rx() argument
1178 SLJIT_ASSERT(src2 & SLJIT_MEM); in emit_rx()
1185 else if (dst == (src2 & REG_MASK) || (dst == OFFS_REG(src2))) { in emit_rx()
1194 base = gpr(src2 & REG_MASK); in emit_rx()
1197 if (src2 & OFFS_REG_MASK) { in emit_rx()
1198 index = gpr(OFFS_REG(src2)); in emit_rx()
1208 if (src2 & REG_MASK) in emit_rx()
1275 sljit_s32 src2, sljit_sw src2w) in emit_commutative() argument
1280 if ((src1 | src2) & SLJIT_MEM) { in emit_commutative()
1294 if ((src2 & SLJIT_MEM) && (!(src1 & SLJIT_MEM) in emit_commutative()
1296 if ((src2 & OFFS_REG_MASK) || is_u12(src2w) || !is_s20(src2w)) in emit_commutative()
1297 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_commutative()
1299 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_commutative()
1304 return emit_rx(compiler, ins12, dst, src2, src2w, src1, src1w, RX_A); in emit_commutative()
1306 return emit_rx(compiler, ins20, dst, src2, src2w, src1, src1w, RXY_A); in emit_commutative()
1321 if ((src2 & SLJIT_MEM) && (!(src1 & SLJIT_MEM) in emit_commutative()
1323 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1326 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1343 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1345 if (dst == src2) in emit_commutative()
1346 return emit_rr(compiler, ins, dst, src2, src2w, src1, src1w); in emit_commutative()
1350 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1352 return emit_rrf(compiler, ins_k, dst, src1, src1w, src2, src2w); in emit_commutative()
1358 sljit_s32 src2, sljit_sw src2w) in emit_non_commutative() argument
1363 if (src2 & SLJIT_MEM) { in emit_non_commutative()
1376 if ((src2 & OFFS_REG_MASK) || is_u12(src2w) || !is_s20(src2w)) in emit_non_commutative()
1377 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1379 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1382 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1384 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1390 …return emit_rr(compiler, (mode & SLJIT_32) ? forms->op_r : forms->op_gr, dst, src1, src1w, src2, s… in emit_non_commutative()
1392 return emit_rrf(compiler, ins, dst, src1, src1w, src2, src2w); in emit_non_commutative()
2380 sljit_s32 src2, sljit_sw src2w) in sljit_emit_add() argument
2387 if (src2 == SLJIT_IMM) { in sljit_emit_add()
2424 FAIL_IF(emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_add()
2459 sljit_s32 src2, sljit_sw src2w) in sljit_emit_sub() argument
2472 if (src2 == SLJIT_IMM) { in sljit_emit_sub()
2488 else if (src2 & SLJIT_MEM) { in sljit_emit_sub()
2489 if ((op & SLJIT_32) && ((src2 & OFFS_REG_MASK) || is_u12(src2w))) { in sljit_emit_sub()
2491 return emit_rx(compiler, ins, src1, src1, src1w, src2, src2w, RX_A); in sljit_emit_sub()
2498 return emit_rx(compiler, ins, src1, src1, src1w, src2, src2w, RXY_A); in sljit_emit_sub()
2505 return emit_rr(compiler, ins, src1, src1, src1w, src2, src2w); in sljit_emit_sub()
2510 FAIL_IF(emit_rr1(compiler, ins, dst, src2, src2w)); in sljit_emit_sub()
2514 if (src2 == SLJIT_IMM) { in sljit_emit_sub()
2555 FAIL_IF(emit_non_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_sub()
2603 sljit_s32 src2, sljit_sw src2w) in sljit_emit_multiply() argument
2619 return emit_commutative(compiler, &multiply_overflow_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2622 if (src2 == SLJIT_IMM) { in sljit_emit_multiply()
2634 return emit_commutative(compiler, &multiply_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2724 sljit_s32 src2, sljit_sw src2w) in sljit_emit_bitwise() argument
2729 if (src2 == SLJIT_IMM && (!(op & SLJIT_SET_Z) || (type == SLJIT_AND && dst == TMP_REG2))) { in sljit_emit_bitwise()
2773 return emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2779 sljit_s32 src2, sljit_sw src2w) in sljit_emit_shift() argument
2793 if (src2 != SLJIT_IMM) { in sljit_emit_shift()
2794 if (FAST_IS_REG(src2)) in sljit_emit_shift()
2795 base_r = gpr(src2); in sljit_emit_shift()
2797 FAIL_IF(emit_move(compiler, tmp1, src2, src2w)); in sljit_emit_shift()
2840 sljit_s32 src2, sljit_sw src2w) in sljit_emit_rotate() argument
2853 if (src2 != SLJIT_IMM) { in sljit_emit_rotate()
2854 if (FAST_IS_REG(src2)) in sljit_emit_rotate()
2855 base_r = gpr(src2); in sljit_emit_rotate()
2857 FAIL_IF(emit_move(compiler, tmp1, src2, src2w)); in sljit_emit_rotate()
2863 if (src2 != SLJIT_IMM) { in sljit_emit_rotate()
2871 if (src2 == SLJIT_IMM) in sljit_emit_rotate()
2901 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2() argument
2904 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2907 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_op2()
2912 if (is_commutative(op) && src1 == SLJIT_IMM && src2 != SLJIT_IMM) { in sljit_emit_op2()
2913 src1 ^= src2; in sljit_emit_op2()
2914 src2 ^= src1; in sljit_emit_op2()
2915 src1 ^= src2; in sljit_emit_op2()
2925 return sljit_emit_add(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2928 FAIL_IF(emit_commutative(compiler, &addc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2934 return sljit_emit_sub(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2937 FAIL_IF(emit_non_commutative(compiler, &subc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2942 FAIL_IF(sljit_emit_multiply(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2947 FAIL_IF(sljit_emit_bitwise(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2955 FAIL_IF(sljit_emit_shift(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2959 FAIL_IF(sljit_emit_rotate(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2970 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2u() argument
2975 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2978 return sljit_emit_op2(compiler, op, dst_reg, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2984 sljit_s32 src2, sljit_sw src2w) in sljit_emit_op2r() argument
2987 CHECK(check_sljit_emit_op2r(compiler, op, dst_reg, src1, src1w, src2, src2w)); in sljit_emit_op2r()
2992 …FAIL_IF(sljit_emit_op2(compiler, SLJIT_MUL | (op & SLJIT_32), 0 /* tmp0 */, 0, src1, src1w, src2, … in sljit_emit_op2r()
3338 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop1_cmp() argument
3355 return emit_float(compiler, ins_r, ins, src1, src2, src2w); in sljit_emit_fop1_cmp()
3417 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop2() argument
3423 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
3426 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_fop2()
3435 if (dst == src2) { in sljit_emit_fop2()
3437 src2 = src1; in sljit_emit_fop2()
3443 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, TMP_FREG1, src2))); in sljit_emit_fop2()
3444 src2 = TMP_FREG1; in sljit_emit_fop2()
3474 FAIL_IF(emit_float(compiler, ins_r, ins, dst_r, src2, src2w)); in sljit_emit_fop2()
3485 sljit_s32 src2, sljit_sw src2w) in sljit_emit_fop2r() argument
3490 CHECK(check_sljit_emit_fop2r(compiler, op, dst_freg, src1, src1w, src2, src2w)); in sljit_emit_fop2r()
3492 ADJUST_LOCAL_OFFSET(src2, src2w); in sljit_emit_fop2r()
3494 if (src2 & SLJIT_MEM) { in sljit_emit_fop2r()
3495 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), TMP_FREG1, src2, src2w)); in sljit_emit_fop2r()
3496 src2 = TMP_FREG1; in sljit_emit_fop2r()
3500 reg = (dst_freg == src2) ? TMP_FREG1 : dst_freg; in sljit_emit_fop2r()
3505 return push_inst(compiler, 0xb3720000 /* cpsdr */ | F12(src2) | F4(dst_freg) | F0(src1)); in sljit_emit_fop2r()