Lines Matching refs:dst

470 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
472 return (pattern) | ((dst & 0xf) << 4) | (src & 0xf); \
503 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
505 return (pattern) | R4A(dst) | R0A(src); \
709 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_s32 d, sljit_gpr b) \
713 return (pattern) | R36A(dst) | R32A(src) | R28A(b) | disp_s20(d); \
732 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_u8 …
741 return (pattern) | R36A(dst & 0xf) | R32A(src & 0xf) | i3 | i4 | i5; \
767 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_uw mask) \
774 return (pattern) | m3 | R4A(dst) | R0A(src); \
840 SLJIT_S390X_INSTRUCTION(flogr, sljit_gpr dst, sljit_gpr src) in SLJIT_S390X_INSTRUCTION() argument
843 return 0xb9830000 | R8A(dst) | R0A(src); in SLJIT_S390X_INSTRUCTION()
847 SLJIT_S390X_INSTRUCTION(ipm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
849 return 0xb2220000 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
853 SLJIT_S390X_INSTRUCTION(spm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
855 return 0x0400 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
859 SLJIT_S390X_INSTRUCTION(risbhgz, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_… in SLJIT_S390X_INSTRUCTION() argument
861 return risbhg(dst, src, start, 0x8 | end, rot); in SLJIT_S390X_INSTRUCTION()
1036 sljit_s32 dst, sljit_sw dstw, in store_word() argument
1042 SLJIT_ASSERT(dst & SLJIT_MEM); in store_word()
1044 if (is_32bit && ((dst & OFFS_REG_MASK) || is_u12(dstw) || !is_s20(dstw))) { in store_word()
1045 FAIL_IF(make_addr_bx(compiler, &addr, dst, dstw, tmp1)); in store_word()
1049 FAIL_IF(make_addr_bxy(compiler, &addr, dst, dstw, tmp1)); in store_word()
1074 sljit_s32 dst, in emit_rr() argument
1082 if (FAST_IS_REG(dst)) { in emit_rr()
1083 dst_r = gpr(dst); in emit_rr()
1085 if (dst == src1) in emit_rr()
1087 else if (dst == src2) { in emit_rr()
1106 dst_r = gpr(dst & REG_MASK); in emit_rr()
1111 sljit_s32 dst, in emit_rr1() argument
1114 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1()
1126 sljit_s32 dst, in emit_rrf() argument
1130 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf()
1153 sljit_s32 dst, in emit_ri() argument
1161 if (FAST_IS_REG(dst)) { in emit_ri()
1162 dst_r = gpr(dst); in emit_ri()
1164 if (dst == src1) in emit_ri()
1177 sljit_s32 dst, in emit_rie_d() argument
1181 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d()
1198 sljit_s32 dst, in emit_rx() argument
1209 if (FAST_IS_REG(dst)) { in emit_rx()
1210 dst_r = gpr(dst); in emit_rx()
1212 if (dst == src1) in emit_rx()
1214 else if (dst == (src2 & REG_MASK) || (dst == OFFS_REG(src2))) { in emit_rx()
1254 dst_r = gpr(dst); in emit_rx()
1259 sljit_s32 dst, sljit_sw dstw, in emit_siy() argument
1262 SLJIT_ASSERT(dst & SLJIT_MEM); in emit_siy()
1266 if (dst & OFFS_REG_MASK) { in emit_siy()
1270 index = gpr(OFFS_REG(dst)); in emit_siy()
1280 if (dst & REG_MASK) in emit_siy()
1286 dst_r = gpr(dst & REG_MASK); in emit_siy()
1302 sljit_s32 dst, in emit_commutative() argument
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()
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()
1352 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1355 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1370 if (ins && FAST_IS_REG(dst)) { in emit_commutative()
1371 if (dst == src1) in emit_commutative()
1372 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1374 if (dst == src2) 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()
1385 sljit_s32 dst, 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()
2018 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op1() argument
2028 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
2029 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op1()
2034 if (FAST_IS_REG(dst) && FAST_IS_REG(src)) { in sljit_emit_op1()
2035 dst_r = gpr(dst); in sljit_emit_op1()
2090 if (FAST_IS_REG(dst) && (src & SLJIT_IMM)) { in sljit_emit_op1()
2112 return push_load_imm_inst(compiler, gpr(dst), srcw); in sljit_emit_op1()
2117 if (FAST_IS_REG(dst) && (src & SLJIT_MEM)) { in sljit_emit_op1()
2118 sljit_gpr reg = gpr(dst); in sljit_emit_op1()
2169 if ((dst & SLJIT_MEM) in sljit_emit_op1()
2177 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2202 if ((dst & SLJIT_MEM) && (src & SLJIT_MEM)) { in sljit_emit_op1()
2210 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2217 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2225 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2232 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2245 dst_r = FAST_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2290 if (dst & SLJIT_MEM) in sljit_emit_op1()
2291 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_32); in sljit_emit_op1()
2331 sljit_s32 dst, sljit_sw dstw, in sljit_emit_add() argument
2341 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2346 return emit_siy(compiler, ins, dst, dstw, src2w); 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()
2381 FAIL_IF(update_zero_overflow(compiler, op, FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0)); in sljit_emit_add()
2383 if (dst & SLJIT_MEM) in sljit_emit_add()
2384 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_add()
2410 sljit_s32 dst, sljit_sw dstw, in sljit_emit_sub() argument
2420 if (dst == (sljit_s32)tmp0 && flag_type <= SLJIT_SIG_LESS_EQUAL) { in sljit_emit_sub()
2464 FAIL_IF(emit_rr1(compiler, ins, dst, src2, src2w)); in sljit_emit_sub()
2472 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2477 return emit_siy(compiler, ins, dst, dstw, neg_src2w); 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()
2513 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub()
2528 if (dst & SLJIT_MEM) in sljit_emit_sub()
2529 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_sub()
2555 sljit_s32 dst, 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()
2592 sljit_s32 dst, in sljit_emit_bitwise_imm() argument
2600 if (IS_GPR_REG(dst)) { in sljit_emit_bitwise_imm()
2601 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2602 if (dst == src1) in sljit_emit_bitwise_imm()
2676 sljit_s32 dst, in sljit_emit_bitwise() argument
2683 if ((src2 & SLJIT_IMM) && (!(op & SLJIT_SET_Z) || (type == SLJIT_AND && dst == (sljit_s32)tmp0))) { in sljit_emit_bitwise()
2699 if (type == SLJIT_AND && dst == (sljit_s32)tmp0 && count16 == 1) { 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()
2731 sljit_s32 dst, in sljit_emit_shift() argument
2736 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift()
2792 sljit_s32 dst, in sljit_emit_rotate() argument
2796 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_rotate()
2853 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op2() argument
2858 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2859 ADJUST_LOCAL_OFFSET(dst, dstw); 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()
2883 if (dst & SLJIT_MEM) in sljit_emit_op2()
2884 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); 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()
2892 if (dst & SLJIT_MEM) in sljit_emit_op2()
2893 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); 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()
2917 if (dst & SLJIT_MEM) in sljit_emit_op2()
2918 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
3155 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_sw_from_f64() argument
3158 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64()
3174 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_sw_from_f64()
3175 return store_word(compiler, dst_r, dst, dstw, GET_OPCODE(op) >= SLJIT_CONV_S32_FROM_F64); in sljit_emit_fop1_conv_sw_from_f64()
3181 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_sw() argument
3184 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw()
3203 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_sw()
3204 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1_conv_f64_from_sw()
3232 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1() argument
3240 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
3242 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
3254 if (FAST_IS_REG(dst)) { in sljit_emit_fop1()
3255 if (dst == src) in sljit_emit_fop1()
3261 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), src, dst, dstw); in sljit_emit_fop1()
3278 if (!(dst & SLJIT_MEM)) in sljit_emit_fop1()
3283 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1()
3290 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop2() argument
3298 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
3299 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fop2()
3304 if (FAST_IS_REG(dst)) { in sljit_emit_fop2()
3305 dst_r = dst; in sljit_emit_fop2()
3307 if (dst == src1) in sljit_emit_fop2()
3310 if (dst == src2) { in sljit_emit_fop2()
3314 src1 = dst; in sljit_emit_fop2()
3351 if (dst & SLJIT_MEM) in sljit_emit_fop2()
3352 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop2()
3362 …BUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw) in sljit_emit_fast_enter() argument
3365 CHECK(check_sljit_emit_fast_enter(compiler, dst, dstw)); in sljit_emit_fast_enter()
3366 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fast_enter()
3368 if (FAST_IS_REG(dst)) in sljit_emit_fast_enter()
3369 return push_inst(compiler, lgr(gpr(dst), link_r)); in sljit_emit_fast_enter()
3372 return store_word(compiler, link_r, dst, dstw, 0); in sljit_emit_fast_enter()
3490 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op_flags() argument
3496 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, type)); in sljit_emit_op_flags()
3498 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags()
3507 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3508 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3553 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3554 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
3665 …t sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, slj… in sljit_emit_const() argument
3671 CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); in sljit_emit_const()
3679 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
3687 if (dst & SLJIT_MEM) in sljit_emit_const()
3688 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
3712 sljit_s32 dst, sljit_sw dstw) in sljit_emit_put_label() argument
3718 CHECK_PTR(check_sljit_emit_put_label(compiler, dst, dstw)); in sljit_emit_put_label()
3719 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_put_label()
3725 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3734 if (dst & SLJIT_MEM) in sljit_emit_put_label()
3735 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()