Lines Matching refs:dst

467 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
469 return (pattern) | ((dst & 0xf) << 4) | (src & 0xf); \
500 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
502 return (pattern) | R4A(dst) | R0A(src); \
706 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_s32 d, sljit_gpr b) \
710 return (pattern) | R36A(dst) | R32A(src) | R28A(b) | disp_s20(d); \
729 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_u8 …
738 return (pattern) | R36A(dst & 0xf) | R32A(src & 0xf) | i3 | i4 | i5; \
764 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_uw mask) \
771 return (pattern) | m3 | R4A(dst) | R0A(src); \
837 SLJIT_S390X_INSTRUCTION(flogr, sljit_gpr dst, sljit_gpr src) in SLJIT_S390X_INSTRUCTION() argument
840 return 0xb9830000 | R8A(dst) | R0A(src); in SLJIT_S390X_INSTRUCTION()
844 SLJIT_S390X_INSTRUCTION(ipm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
846 return 0xb2220000 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
850 SLJIT_S390X_INSTRUCTION(spm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
852 return 0x0400 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
856 SLJIT_S390X_INSTRUCTION(risbhgz, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_… in SLJIT_S390X_INSTRUCTION() argument
858 return risbhg(dst, src, start, 0x8 | end, rot); in SLJIT_S390X_INSTRUCTION()
1050 sljit_s32 dst, sljit_sw dstw, in store_word() argument
1053 return load_store_op(compiler, src_r, dst, dstw, is_32bit, store_forms); in store_word()
1077 sljit_s32 dst, in emit_rr() argument
1085 if (FAST_IS_REG(dst)) { in emit_rr()
1086 dst_r = gpr(dst); in emit_rr()
1088 if (dst == src1) in emit_rr()
1090 else if (dst == src2) { in emit_rr()
1109 dst_r = gpr(dst & REG_MASK); in emit_rr()
1114 sljit_s32 dst, in emit_rr1() argument
1117 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1()
1129 sljit_s32 dst, in emit_rrf() argument
1133 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf()
1156 sljit_s32 dst, in emit_ri() argument
1164 if (FAST_IS_REG(dst)) { in emit_ri()
1165 dst_r = gpr(dst); in emit_ri()
1167 if (dst == src1) in emit_ri()
1180 sljit_s32 dst, in emit_rie_d() argument
1184 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d()
1201 sljit_s32 dst, in emit_rx() argument
1212 if (FAST_IS_REG(dst)) { in emit_rx()
1213 dst_r = gpr(dst); in emit_rx()
1215 if (dst == src1) in emit_rx()
1217 else if (dst == (src2 & REG_MASK) || (dst == OFFS_REG(src2))) { in emit_rx()
1257 dst_r = gpr(dst); in emit_rx()
1262 sljit_s32 dst, sljit_sw dstw, in emit_siy() argument
1267 SLJIT_ASSERT(dst & SLJIT_MEM); in emit_siy()
1269 if (dst & OFFS_REG_MASK) { in emit_siy()
1273 index = gpr(OFFS_REG(dst)); in emit_siy()
1283 if (dst & REG_MASK) in emit_siy()
1289 dst_r = gpr(dst & REG_MASK); in emit_siy()
1305 sljit_s32 dst, in emit_commutative() argument
1329 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_commutative()
1331 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_commutative()
1336 return emit_rx(compiler, ins12, dst, src2, src2w, src1, src1w, RX_A); in emit_commutative()
1338 return emit_rx(compiler, ins20, dst, src2, src2w, src1, src1w, RXY_A); in emit_commutative()
1355 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1358 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1373 if (ins && FAST_IS_REG(dst)) { in emit_commutative()
1374 if (dst == src1) in emit_commutative()
1375 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1377 if (dst == src2) in emit_commutative()
1378 return emit_rr(compiler, ins, dst, src2, src2w, src1, src1w); in emit_commutative()
1382 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1384 return emit_rrf(compiler, ins_k, dst, src1, src1w, src2, src2w); in emit_commutative()
1388 sljit_s32 dst, in emit_non_commutative() argument
1409 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1411 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1414 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1416 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1421 if (ins == 0 || (FAST_IS_REG(dst) && dst == src1)) in emit_non_commutative()
1422 …return emit_rr(compiler, (mode & SLJIT_32) ? forms->op_r : forms->op_gr, dst, src1, src1w, src2, s… in emit_non_commutative()
1424 return emit_rrf(compiler, ins, dst, src1, src1w, src2, src2w); in emit_non_commutative()
2041 sljit_s32 dst, sljit_sw dstw, in sljit_emit_rev() argument
2050 if (dst & SLJIT_MEM) { in sljit_emit_rev()
2057 FAIL_IF(make_addr_bxy(compiler, &addr, dst, dstw, tmp1)); in sljit_emit_rev()
2067 reg = gpr(dst); in sljit_emit_rev()
2117 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op1() argument
2127 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
2128 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op1()
2133 if (FAST_IS_REG(dst) && FAST_IS_REG(src)) { in sljit_emit_op1()
2134 dst_r = gpr(dst); in sljit_emit_op1()
2189 if (FAST_IS_REG(dst) && src == SLJIT_IMM) { in sljit_emit_op1()
2211 return push_load_imm_inst(compiler, gpr(dst), srcw); in sljit_emit_op1()
2216 if (FAST_IS_REG(dst) && (src & SLJIT_MEM)) { in sljit_emit_op1()
2217 sljit_gpr reg = gpr(dst); in sljit_emit_op1()
2268 if ((dst & SLJIT_MEM) && (FAST_IS_REG(src) || src == SLJIT_IMM)) { in sljit_emit_op1()
2276 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2301 if ((dst & SLJIT_MEM) && (src & SLJIT_MEM)) { in sljit_emit_op1()
2309 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2316 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2324 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2331 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2344 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_op1()
2365 return sljit_emit_rev(compiler, op, dst, dstw, src, srcw); in sljit_emit_op1()
2370 if (dst & SLJIT_MEM) in sljit_emit_op1()
2371 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_32); in sljit_emit_op1()
2411 sljit_s32 dst, sljit_sw dstw, in sljit_emit_add() argument
2421 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2426 return emit_siy(compiler, ins, dst, dstw, src2w); in sljit_emit_add()
2434 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, src2w)); in sljit_emit_add()
2441 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2445 FAIL_IF(emit_ri(compiler, 0xc20400000000 /* slgfi */, dst, src1, src1w, -src2w, RIL_A)); in sljit_emit_add()
2451 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2457 FAIL_IF(emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_add()
2461 FAIL_IF(update_zero_overflow(compiler, op, FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0)); in sljit_emit_add()
2463 if (dst & SLJIT_MEM) in sljit_emit_add()
2464 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_add()
2490 sljit_s32 dst, sljit_sw dstw, in sljit_emit_sub() argument
2500 if (dst == (sljit_s32)tmp0 && flag_type <= SLJIT_SIG_LESS_EQUAL) { in sljit_emit_sub()
2543 FAIL_IF(emit_rr1(compiler, ins, dst, src2, src2w)); in sljit_emit_sub()
2551 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2556 return emit_siy(compiler, ins, dst, dstw, neg_src2w); in sljit_emit_sub()
2564 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, neg_src2w)); in sljit_emit_sub()
2572 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_sub()
2576 FAIL_IF(emit_ri(compiler, 0xc20a00000000 /* algfi */, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2582 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2588 FAIL_IF(emit_non_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_sub()
2592 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub()
2607 if (dst & SLJIT_MEM) in sljit_emit_sub()
2608 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_sub()
2634 sljit_s32 dst, in sljit_emit_multiply() argument
2652 return emit_commutative(compiler, &multiply_overflow_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2658 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RI_A); in sljit_emit_multiply()
2663 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A); in sljit_emit_multiply()
2667 return emit_commutative(compiler, &multiply_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2671 sljit_s32 dst, in sljit_emit_bitwise_imm() argument
2679 if (IS_GPR_REG(dst)) { in sljit_emit_bitwise_imm()
2680 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2681 if (dst == src1) in sljit_emit_bitwise_imm()
2755 sljit_s32 dst, in sljit_emit_bitwise() argument
2762 if (src2 == SLJIT_IMM && (!(op & SLJIT_SET_Z) || (type == SLJIT_AND && dst == (sljit_s32)tmp0))) { in sljit_emit_bitwise()
2778 if (type == SLJIT_AND && dst == (sljit_s32)tmp0 && count16 == 1) { in sljit_emit_bitwise()
2796 return sljit_emit_bitwise_imm(compiler, type, dst, src1, src1w, imm, count16); in sljit_emit_bitwise()
2806 return emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2810 sljit_s32 dst, in sljit_emit_shift() argument
2815 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift()
2871 sljit_s32 dst, in sljit_emit_rotate() argument
2875 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_rotate()
2932 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op2() argument
2937 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2938 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op2()
2958 return sljit_emit_add(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2961 FAIL_IF(emit_commutative(compiler, &addc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2962 if (dst & SLJIT_MEM) in sljit_emit_op2()
2963 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
2967 return sljit_emit_sub(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2970 FAIL_IF(emit_non_commutative(compiler, &subc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2971 if (dst & SLJIT_MEM) in sljit_emit_op2()
2972 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
2975 FAIL_IF(sljit_emit_multiply(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2980 FAIL_IF(sljit_emit_bitwise(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2988 FAIL_IF(sljit_emit_shift(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2992 FAIL_IF(sljit_emit_rotate(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2996 if (dst & SLJIT_MEM) in sljit_emit_op2()
2997 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
3163 sljit_s32 dst, sljit_sw dstw) in sljit_emit_op_dst() argument
3169 CHECK(check_sljit_emit_op_dst(compiler, op, dst, dstw)); in sljit_emit_op_dst()
3170 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op_dst()
3174 if (FAST_IS_REG(dst)) in sljit_emit_op_dst()
3175 return push_inst(compiler, lgr(gpr(dst), link_r)); in sljit_emit_op_dst()
3178 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_op_dst()
3185 if (dst & SLJIT_MEM) in sljit_emit_op_dst()
3186 return store_word(compiler, dst_r, dst, dstw, 0); in sljit_emit_op_dst()
3267 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_sw_from_f64() argument
3270 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64()
3286 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_sw_from_f64()
3287 return store_word(compiler, dst_r, dst, dstw, GET_OPCODE(op) >= SLJIT_CONV_S32_FROM_F64); in sljit_emit_fop1_conv_sw_from_f64()
3293 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_w() argument
3296 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_w()
3309 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_w()
3310 return float_mem(compiler, FLOAT_STORE | ((ins & 0x10000) ? 0 : SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1_conv_f64_from_w()
3316 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_sw() argument
3329 return sljit_emit_fop1_conv_f64_from_w(compiler, ins, dst, dstw, src, srcw); in sljit_emit_fop1_conv_f64_from_sw()
3333 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_uw() argument
3346 return sljit_emit_fop1_conv_f64_from_w(compiler, ins, dst, dstw, src, srcw); in sljit_emit_fop1_conv_f64_from_uw()
3372 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1() argument
3380 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
3382 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
3394 if (FAST_IS_REG(dst)) { in sljit_emit_fop1()
3395 if (dst == src) in sljit_emit_fop1()
3401 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), src, dst, dstw); in sljit_emit_fop1()
3418 if (!(dst & SLJIT_MEM)) in sljit_emit_fop1()
3423 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1()
3430 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop2() argument
3438 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
3439 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fop2()
3444 if (FAST_IS_REG(dst)) { in sljit_emit_fop2()
3445 dst_r = dst; in sljit_emit_fop2()
3447 if (dst == src1) in sljit_emit_fop2()
3450 if (dst == src2) { in sljit_emit_fop2()
3454 src1 = dst; in sljit_emit_fop2()
3491 if (dst & SLJIT_MEM) in sljit_emit_fop2()
3492 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop2()
3702 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op_flags() argument
3705 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags()
3710 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, type)); in sljit_emit_op_flags()
3719 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3720 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3765 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3766 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
4302 sljit_s32 dst, sljit_sw dstw) in sljit_emit_simd_sign() argument
4309 CHECK(check_sljit_emit_simd_sign(compiler, type, freg, dst, dstw)); in sljit_emit_simd_sign()
4311 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_simd_sign()
4344 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_simd_sign()
4349 return store_word(compiler, tmp0, dst, dstw, type & SLJIT_32); in sljit_emit_simd_sign()
4461 …t sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, slj… in sljit_emit_const() argument
4467 CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); in sljit_emit_const()
4475 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
4483 if (dst & SLJIT_MEM) in sljit_emit_const()
4484 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
4508 sljit_s32 dst, sljit_sw dstw) in sljit_emit_put_label() argument
4514 CHECK_PTR(check_sljit_emit_put_label(compiler, dst, dstw)); in sljit_emit_put_label()
4515 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_put_label()
4521 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
4530 if (dst & SLJIT_MEM) in sljit_emit_put_label()
4531 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()