Lines Matching refs:src1

1075 	sljit_s32 src1, sljit_sw src1w,  in emit_rr()  argument
1085 if (dst == src1) in emit_rr()
1094 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1112 sljit_s32 src1, sljit_sw src1w) in emit_rr1() argument
1117 if (FAST_IS_REG(src1)) in emit_rr1()
1118 src_r = gpr(src1); in emit_rr1()
1120 FAIL_IF(emit_move(compiler, tmp1, src1, src1w)); in emit_rr1()
1127 sljit_s32 src1, sljit_sw src1w, in emit_rrf() argument
1134 if (FAST_IS_REG(src1)) in emit_rrf()
1135 src1_r = gpr(src1); in emit_rrf()
1137 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in emit_rrf()
1154 sljit_s32 src1, sljit_sw src1w, in emit_ri() argument
1164 if (dst == src1) in emit_ri()
1169 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1178 sljit_s32 src1, sljit_sw src1w, in emit_rie_d() argument
1184 if (!FAST_IS_REG(src1)) in emit_rie_d()
1185 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in emit_rie_d()
1187 src_r = gpr(src1 & REG_MASK); in emit_rie_d()
1199 sljit_s32 src1, sljit_sw src1w, in emit_rx() argument
1212 if (dst == src1) in emit_rx()
1221 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1303 sljit_s32 src1, sljit_sw src1w, in emit_commutative() argument
1309 if ((src1 | src2) & SLJIT_MEM) { in emit_commutative()
1323 if ((src2 & SLJIT_MEM) && (!(src1 & SLJIT_MEM) in emit_commutative()
1324 || ((src1 & OFFS_REG_MASK) ? (src1w & 0x3) == 0 : is_s20(src1w)))) { in emit_commutative()
1326 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_commutative()
1328 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_commutative()
1331 if (src1 & SLJIT_MEM) { in emit_commutative()
1332 if ((src1 & OFFS_REG_MASK) || is_u12(src1w) || !is_s20(src1w)) in emit_commutative()
1333 return emit_rx(compiler, ins12, dst, src2, src2w, src1, src1w, RX_A); in emit_commutative()
1335 return emit_rx(compiler, ins20, dst, src2, src2w, src1, src1w, RXY_A); in emit_commutative()
1350 if ((src2 & SLJIT_MEM) && (!(src1 & SLJIT_MEM) in emit_commutative()
1351 …|| ((src1 & OFFS_REG_MASK) ? (src1w & 0x3) == 0 : (rx_type == RX_A ? is_u12(src1w) : is_s20(src1w)… in emit_commutative()
1352 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1354 if (src1 & SLJIT_MEM) in emit_commutative()
1355 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1371 if (dst == src1) in emit_commutative()
1372 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1375 return emit_rr(compiler, ins, dst, src2, src2w, src1, src1w); in emit_commutative()
1379 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1381 return emit_rrf(compiler, ins_k, dst, src1, src1w, src2, src2w); in emit_commutative()
1386 sljit_s32 src1, sljit_sw src1w, in emit_non_commutative() argument
1406 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1408 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1411 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1413 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1418 if (ins == 0 || (FAST_IS_REG(dst) && dst == src1)) in emit_non_commutative()
1419 …return emit_rr(compiler, (mode & SLJIT_32) ? forms->op_r : forms->op_gr, dst, src1, src1w, src2, s… in emit_non_commutative()
1421 return emit_rrf(compiler, ins, dst, src1, src1w, src2, src2w); in emit_non_commutative()
2332 sljit_s32 src1, sljit_sw src1w, in sljit_emit_add() argument
2341 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2354 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, src2w)); in sljit_emit_add()
2361 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2365 FAIL_IF(emit_ri(compiler, 0xc20400000000 /* slgfi */, dst, src1, src1w, -src2w, RIL_A)); in sljit_emit_add()
2371 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2377 FAIL_IF(emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_add()
2411 sljit_s32 src1, sljit_sw src1w, in sljit_emit_sub() argument
2430 return emit_ri(compiler, ins, src1, src1, src1w, src2w, RIL_A); in sljit_emit_sub()
2436 return emit_ri(compiler, ins, src1, src1, src1w, src2w, RIL_A); in sljit_emit_sub()
2439 return emit_rie_d(compiler, 0xec00000000db /* alghsik */, (sljit_s32)tmp0, src1, src1w, src2w); in sljit_emit_sub()
2445 return emit_rx(compiler, ins, src1, src1, src1w, src2, src2w, RX_A); in sljit_emit_sub()
2452 return emit_rx(compiler, ins, src1, src1, src1w, src2, src2w, RXY_A); in sljit_emit_sub()
2459 return emit_rr(compiler, ins, src1, src1, src1w, src2, src2w); in sljit_emit_sub()
2462 if (src1 == SLJIT_IMM && src1w == 0 && (flag_type == 0 || sets_signed)) { in sljit_emit_sub()
2472 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2485 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, neg_src2w)); in sljit_emit_sub()
2493 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_sub()
2497 FAIL_IF(emit_ri(compiler, 0xc20a00000000 /* algfi */, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2503 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2509 FAIL_IF(emit_non_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_sub()
2556 sljit_s32 src1, sljit_sw src1w, in sljit_emit_multiply() argument
2573 return emit_commutative(compiler, &multiply_overflow_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2579 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RI_A); in sljit_emit_multiply()
2584 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A); in sljit_emit_multiply()
2588 return emit_commutative(compiler, &multiply_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2593 sljit_s32 src1, sljit_sw src1w, in sljit_emit_bitwise_imm() argument
2602 if (dst == src1) in sljit_emit_bitwise_imm()
2607 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2677 sljit_s32 src1, sljit_sw src1w, in sljit_emit_bitwise() argument
2702 if (FAST_IS_REG(src1)) in sljit_emit_bitwise()
2703 src_r = gpr(src1 & REG_MASK); in sljit_emit_bitwise()
2705 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in sljit_emit_bitwise()
2717 return sljit_emit_bitwise_imm(compiler, type, dst, src1, src1w, imm, count16); in sljit_emit_bitwise()
2727 return emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2732 sljit_s32 src1, sljit_sw src1w, in sljit_emit_shift() argument
2742 if (FAST_IS_REG(src1)) in sljit_emit_shift()
2743 src_r = gpr(src1); in sljit_emit_shift()
2745 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in sljit_emit_shift()
2793 sljit_s32 src1, sljit_sw src1w, in sljit_emit_rotate() argument
2802 if (FAST_IS_REG(src1)) in sljit_emit_rotate()
2803 src_r = gpr(src1); in sljit_emit_rotate()
2805 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in sljit_emit_rotate()
2854 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
2858 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2860 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_op2()
2866 if (is_commutative(op) && (src1 & SLJIT_IMM) && !(src2 & SLJIT_IMM)) { in sljit_emit_op2()
2867 src1 ^= src2; in sljit_emit_op2()
2868 src2 ^= src1; in sljit_emit_op2()
2869 src1 ^= src2; in sljit_emit_op2()
2879 return sljit_emit_add(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2882 FAIL_IF(emit_commutative(compiler, &addc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2888 return sljit_emit_sub(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2891 FAIL_IF(emit_non_commutative(compiler, &subc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2896 FAIL_IF(sljit_emit_multiply(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2901 FAIL_IF(sljit_emit_bitwise(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2909 FAIL_IF(sljit_emit_shift(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2913 FAIL_IF(sljit_emit_rotate(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2923 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2u() argument
2927 CHECK(check_sljit_emit_op2(compiler, op, 1, 0, 0, src1, src1w, src2, src2w)); in sljit_emit_op2u()
2930 return sljit_emit_op2(compiler, op, (sljit_s32)tmp0, 0, src1, src1w, src2, src2w); in sljit_emit_op2u()
2935 sljit_s32 src1, sljit_sw src1w, in sljit_emit_shift_into() argument
2946 CHECK(check_sljit_emit_shift_into(compiler, op, src_dst, src1, src1w, src2, src2w)); in sljit_emit_shift_into()
2950 if (src_dst == src1) { in sljit_emit_shift_into()
2955 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_shift_into()
2958 if (src1 & SLJIT_MEM) in sljit_emit_shift_into()
2959 FAIL_IF(load_word(compiler, tmp0, src1, src1w, op & SLJIT_32)); in sljit_emit_shift_into()
2960 else if (src1 & SLJIT_IMM) in sljit_emit_shift_into()
2963 src1_r = gpr(src1); in sljit_emit_shift_into()
3210 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
3215 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
3216 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), TMP_FREG1, src1, src1w)); in sljit_emit_fop1_cmp()
3217 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
3228 return emit_float(compiler, ins_r, ins, src1, src2, src2w); in sljit_emit_fop1_cmp()
3291 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
3298 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
3300 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
3307 if (dst == src1) in sljit_emit_fop2()
3312 src2 = src1; in sljit_emit_fop2()
3314 src1 = dst; in sljit_emit_fop2()
3323 if (src1 & SLJIT_MEM) in sljit_emit_fop2()
3324 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), dst_r, src1, src1w)); in sljit_emit_fop2()
3326 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()