Lines Matching refs:src1
1046 sljit_s32 src1, sljit_sw src1w, in emit_rr() argument
1056 if (dst == src1) in emit_rr()
1065 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1083 sljit_s32 src1, sljit_sw src1w) in emit_rr1() argument
1088 if (FAST_IS_REG(src1)) in emit_rr1()
1089 src_r = gpr(src1); in emit_rr1()
1091 FAIL_IF(emit_move(compiler, tmp1, src1, src1w)); in emit_rr1()
1098 sljit_s32 src1, sljit_sw src1w, in emit_rrf() argument
1105 if (FAST_IS_REG(src1)) in emit_rrf()
1106 src1_r = gpr(src1); in emit_rrf()
1108 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in emit_rrf()
1125 sljit_s32 src1, sljit_sw src1w, in emit_ri() argument
1135 if (dst == src1) in emit_ri()
1140 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1149 sljit_s32 src1, sljit_sw src1w, in emit_rie_d() argument
1155 if (!FAST_IS_REG(src1)) in emit_rie_d()
1156 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in emit_rie_d()
1158 src_r = gpr(src1 & REG_MASK); in emit_rie_d()
1170 sljit_s32 src1, sljit_sw src1w, in emit_rx() argument
1183 if (dst == src1) in emit_rx()
1192 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1274 sljit_s32 src1, sljit_sw src1w, in emit_commutative() argument
1280 if ((src1 | src2) & SLJIT_MEM) { in emit_commutative()
1294 if ((src2 & SLJIT_MEM) && (!(src1 & SLJIT_MEM) in emit_commutative()
1295 || ((src1 & OFFS_REG_MASK) ? (src1w & 0x3) == 0 : is_s20(src1w)))) { 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()
1302 if (src1 & SLJIT_MEM) { in emit_commutative()
1303 if ((src1 & OFFS_REG_MASK) || is_u12(src1w) || !is_s20(src1w)) 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()
1322 …|| ((src1 & OFFS_REG_MASK) ? (src1w & 0x3) == 0 : (rx_type == RX_A ? is_u12(src1w) : is_s20(src1w)… in emit_commutative()
1323 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1325 if (src1 & SLJIT_MEM) in emit_commutative()
1326 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1342 if (dst == src1) in emit_commutative()
1343 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); 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()
1357 sljit_s32 src1, sljit_sw src1w, in emit_non_commutative() argument
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()
1389 if (ins == 0 || (FAST_IS_REG(dst) && dst == src1)) 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()
2379 sljit_s32 src1, sljit_sw src1w, in sljit_emit_add() argument
2388 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2401 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, src2w)); in sljit_emit_add()
2408 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2412 FAIL_IF(emit_ri(compiler, 0xc20400000000 /* slgfi */, dst, src1, src1w, -src2w, RIL_A)); in sljit_emit_add()
2418 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2424 FAIL_IF(emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_add()
2458 sljit_s32 src1, sljit_sw src1w, in sljit_emit_sub() argument
2476 return emit_ri(compiler, ins, src1, src1, src1w, src2w, RIL_A); in sljit_emit_sub()
2482 return emit_ri(compiler, ins, src1, src1, src1w, src2w, RIL_A); in sljit_emit_sub()
2485 return emit_rie_d(compiler, 0xec00000000db /* alghsik */, (sljit_s32)tmp0, src1, src1w, 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()
2508 if (src1 == SLJIT_IMM && src1w == 0 && (flag_type == 0 || sets_signed)) { in sljit_emit_sub()
2518 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2531 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, neg_src2w)); in sljit_emit_sub()
2539 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_sub()
2543 FAIL_IF(emit_ri(compiler, 0xc20a00000000 /* algfi */, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2549 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2555 FAIL_IF(emit_non_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_sub()
2602 sljit_s32 src1, sljit_sw src1w, in sljit_emit_multiply() argument
2619 return emit_commutative(compiler, &multiply_overflow_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2625 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RI_A); in sljit_emit_multiply()
2630 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A); in sljit_emit_multiply()
2634 return emit_commutative(compiler, &multiply_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2639 sljit_s32 src1, sljit_sw src1w, in sljit_emit_bitwise_imm() argument
2648 if (dst == src1) in sljit_emit_bitwise_imm()
2653 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2723 sljit_s32 src1, sljit_sw src1w, in sljit_emit_bitwise() argument
2748 if (FAST_IS_REG(src1)) in sljit_emit_bitwise()
2749 src_r = gpr(src1 & REG_MASK); in sljit_emit_bitwise()
2751 FAIL_IF(emit_move(compiler, tmp1, src1, src1w)); in sljit_emit_bitwise()
2763 return sljit_emit_bitwise_imm(compiler, type, dst, src1, src1w, imm, count16); in sljit_emit_bitwise()
2773 return emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2778 sljit_s32 src1, sljit_sw src1w, in sljit_emit_shift() argument
2788 if (FAST_IS_REG(src1)) in sljit_emit_shift()
2789 src_r = gpr(src1); in sljit_emit_shift()
2791 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in sljit_emit_shift()
2839 sljit_s32 src1, sljit_sw src1w, in sljit_emit_rotate() argument
2848 if (FAST_IS_REG(src1)) in sljit_emit_rotate()
2849 src_r = gpr(src1); in sljit_emit_rotate()
2851 FAIL_IF(emit_move(compiler, tmp0, src1, src1w)); in sljit_emit_rotate()
2900 sljit_s32 src1, sljit_sw src1w, in sljit_emit_op2() argument
2904 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2906 ADJUST_LOCAL_OFFSET(src1, src1w); 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()
2969 sljit_s32 src1, sljit_sw src1w, 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()
2983 sljit_s32 src1, sljit_sw src1w, 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()
3337 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop1_cmp() argument
3342 if (src1 & SLJIT_MEM) { in sljit_emit_fop1_cmp()
3343 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), TMP_FREG1, src1, src1w)); in sljit_emit_fop1_cmp()
3344 src1 = TMP_FREG1; in sljit_emit_fop1_cmp()
3355 return emit_float(compiler, ins_r, ins, src1, src2, src2w); in sljit_emit_fop1_cmp()
3416 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2() argument
3423 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
3425 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2()
3432 if (dst == src1) in sljit_emit_fop2()
3437 src2 = src1; in sljit_emit_fop2()
3439 src1 = dst; in sljit_emit_fop2()
3448 if (src1 & SLJIT_MEM) in sljit_emit_fop2()
3449 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), dst_r, src1, src1w)); in sljit_emit_fop2()
3451 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()
3484 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fop2r() argument
3490 CHECK(check_sljit_emit_fop2r(compiler, op, dst_freg, src1, src1w, src2, src2w)); in sljit_emit_fop2r()
3491 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fop2r()
3499 if (src1 & SLJIT_MEM) { in sljit_emit_fop2r()
3501 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), reg, src1, src1w)); in sljit_emit_fop2r()
3502 src1 = reg; in sljit_emit_fop2r()
3505 return push_inst(compiler, 0xb3720000 /* cpsdr */ | F12(src2) | F4(dst_freg) | F0(src1)); in sljit_emit_fop2r()
3758 sljit_s32 src1, sljit_sw src1w, in sljit_emit_select() argument
3767 CHECK(check_sljit_emit_select(compiler, type, dst_reg, src1, src1w, src2_reg)); in sljit_emit_select()
3769 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_select()
3772 if (src1 == dst_reg) { in sljit_emit_select()
3773 src1 = src2_reg; in sljit_emit_select()
3777 if (ADDRESSING_DEPENDS_ON(src1, dst_reg)) { in sljit_emit_select()
3778 FAIL_IF(load_word(compiler, dst_r, src1, src1w, type & SLJIT_32)); in sljit_emit_select()
3779 src1 = src2_reg; in sljit_emit_select()
3789 if (src1 & SLJIT_MEM) { in sljit_emit_select()
3790 if (src1 & OFFS_REG_MASK) { in sljit_emit_select()
3791 src_r = gpr(OFFS_REG(src1)); in sljit_emit_select()
3798 …FAIL_IF(push_inst(compiler, 0xb9e80000 /* agrk */ | R12A(src_r) | R4A(tmp1) | R0A(gpr(src1 & REG_M… in sljit_emit_select()
3804 if (src1 & REG_MASK) in sljit_emit_select()
3805 …FAIL_IF(push_inst(compiler, 0xb9e80000 /* agrk */ | R12A(tmp1) | R4A(tmp1) | R0A(gpr(src1 & REG_MA… in sljit_emit_select()
3810 src_r = gpr(src1 & REG_MASK); in sljit_emit_select()
3816 if (src1 == SLJIT_IMM) { in sljit_emit_select()
3828 src_r = gpr(src1); in sljit_emit_select()
3836 sljit_s32 src1, sljit_sw src1w, in sljit_emit_fselect() argument
3844 CHECK(check_sljit_emit_fselect(compiler, type, dst_freg, src1, src1w, src2_freg)); in sljit_emit_fselect()
3846 ADJUST_LOCAL_OFFSET(src1, src1w); in sljit_emit_fselect()
3849 if (dst_freg == src1) { in sljit_emit_fselect()
3850 src1 = src2_freg; in sljit_emit_fselect()
3863 if (!(src1 & SLJIT_MEM)) { in sljit_emit_fselect()
3865 FAIL_IF(push_inst(compiler, ins | F4(dst_freg) | F0(src1))); in sljit_emit_fselect()
3867 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (type & SLJIT_32), dst_freg, src1, src1w)); in sljit_emit_fselect()