Lines Matching refs:dst
453 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
455 return (pattern) | ((dst & 0xf) << 4) | (src & 0xf); \
486 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
488 return (pattern) | R4A(dst) | R0A(src); \
692 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_s32 d, sljit_gpr b) \
696 return (pattern) | R36A(dst) | R32A(src) | R28A(b) | disp_s20(d); \
715 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_u8 …
724 return (pattern) | R36A(dst & 0xf) | R32A(src & 0xf) | i3 | i4 | i5; \
750 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_uw mask) \
757 return (pattern) | m3 | R4A(dst) | R0A(src); \
823 SLJIT_S390X_INSTRUCTION(flogr, sljit_gpr dst, sljit_gpr src) in SLJIT_S390X_INSTRUCTION() argument
826 return 0xb9830000 | R8A(dst) | R0A(src); in SLJIT_S390X_INSTRUCTION()
830 SLJIT_S390X_INSTRUCTION(ipm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
832 return 0xb2220000 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
836 SLJIT_S390X_INSTRUCTION(spm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
838 return 0x0400 | R4A(dst); in SLJIT_S390X_INSTRUCTION()
842 SLJIT_S390X_INSTRUCTION(risbhgz, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_… in SLJIT_S390X_INSTRUCTION() argument
844 return risbhg(dst, src, start, 0x8 | end, rot); in SLJIT_S390X_INSTRUCTION()
981 static sljit_s32 load_word(struct sljit_compiler *compiler, sljit_gpr dst, in load_word() argument
995 ins = WHEN(is_u12(addr.offset), dst, l, ly, addr); in load_word()
997 ins = lg(dst, addr.offset, addr.index, addr.base); in load_word()
1004 sljit_s32 dst, sljit_sw dstw, in store_word() argument
1010 SLJIT_ASSERT(dst & SLJIT_MEM); in store_word()
1012 FAIL_IF(make_addr_bxy(compiler, &addr, dst, dstw, tmp1)); in store_word()
1014 FAIL_IF(make_addr_bx(compiler, &addr, dst, dstw, tmp1)); in store_word()
1043 sljit_s32 dst, in emit_rr() argument
1051 if (FAST_IS_REG(dst)) { in emit_rr()
1052 dst_r = gpr(dst); in emit_rr()
1054 if (dst == src1) in emit_rr()
1056 else if (dst == src2) { in emit_rr()
1075 dst_r = gpr(dst & REG_MASK); in emit_rr()
1080 sljit_s32 dst, in emit_rr1() argument
1083 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1()
1095 sljit_s32 dst, in emit_rrf() argument
1099 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf()
1122 sljit_s32 dst, in emit_ri() argument
1130 if (FAST_IS_REG(dst)) { in emit_ri()
1131 dst_r = gpr(dst); in emit_ri()
1133 if (dst == src1) in emit_ri()
1146 sljit_s32 dst, in emit_rie_d() argument
1150 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d()
1167 sljit_s32 dst, in emit_rx() argument
1178 if (FAST_IS_REG(dst)) { in emit_rx()
1179 dst_r = gpr(dst); in emit_rx()
1181 if (dst == src1) in emit_rx()
1183 else if (dst == (src2 & REG_MASK) || (dst == OFFS_REG(src2))) { in emit_rx()
1223 dst_r = gpr(dst); in emit_rx()
1228 sljit_s32 dst, sljit_sw dstw, in emit_siy() argument
1231 SLJIT_ASSERT(dst & SLJIT_MEM); in emit_siy()
1235 if (dst & OFFS_REG_MASK) { in emit_siy()
1239 index = gpr(OFFS_REG(dst)); in emit_siy()
1249 if (dst & REG_MASK) in emit_siy()
1255 dst_r = gpr(dst & REG_MASK); in emit_siy()
1271 sljit_s32 dst, in emit_commutative() argument
1295 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_commutative()
1297 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_commutative()
1302 return emit_rx(compiler, ins12, dst, src2, src2w, src1, src1w, RX_A); in emit_commutative()
1304 return emit_rx(compiler, ins20, dst, src2, src2w, src1, src1w, RXY_A); in emit_commutative()
1321 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1324 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1339 if (ins && FAST_IS_REG(dst)) { in emit_commutative()
1340 if (dst == src1) in emit_commutative()
1341 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1343 if (dst == src2) in emit_commutative()
1344 return emit_rr(compiler, ins, dst, src2, src2w, src1, src1w); in emit_commutative()
1348 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1350 return emit_rrf(compiler, ins_k, dst, src1, src1w, src2, src2w); in emit_commutative()
1354 sljit_s32 dst, in emit_non_commutative() argument
1375 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1377 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1380 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1382 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1387 if (ins == 0 || (FAST_IS_REG(dst) && dst == src1)) in emit_non_commutative()
1388 …return emit_rr(compiler, (mode & SLJIT_32) ? forms->op_r : forms->op_gr, dst, src1, src1w, src2, s… in emit_non_commutative()
1390 return emit_rrf(compiler, ins, dst, src1, src1w, src2, src2w); in emit_non_commutative()
1865 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op1() argument
1875 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1876 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op1()
1881 if (FAST_IS_REG(dst) && FAST_IS_REG(src)) { in sljit_emit_op1()
1882 dst_r = gpr(dst); in sljit_emit_op1()
1937 if (FAST_IS_REG(dst) && (src & SLJIT_IMM)) { in sljit_emit_op1()
1959 return push_load_imm_inst(compiler, gpr(dst), srcw); in sljit_emit_op1()
1964 if (FAST_IS_REG(dst) && (src & SLJIT_MEM)) { in sljit_emit_op1()
1965 sljit_gpr reg = gpr(dst); in sljit_emit_op1()
2016 if ((dst & SLJIT_MEM) in sljit_emit_op1()
2024 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2049 if ((dst & SLJIT_MEM) && (src & SLJIT_MEM)) { in sljit_emit_op1()
2057 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2064 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2072 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2079 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
2092 dst_r = FAST_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2149 if (dst & SLJIT_MEM) in sljit_emit_op1()
2150 FAIL_IF(store_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op1()
2195 sljit_s32 dst, sljit_sw dstw, in sljit_emit_add() argument
2205 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2210 return emit_siy(compiler, ins, dst, dstw, src2w); in sljit_emit_add()
2218 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, src2w)); in sljit_emit_add()
2225 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2229 FAIL_IF(emit_ri(compiler, 0xc20400000000 /* slgfi */, dst, src1, src1w, -src2w, RIL_A)); in sljit_emit_add()
2235 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2241 FAIL_IF(emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_add()
2245 FAIL_IF(update_zero_overflow(compiler, op, FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0)); in sljit_emit_add()
2247 if (dst & SLJIT_MEM) in sljit_emit_add()
2248 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_add()
2274 sljit_s32 dst, sljit_sw dstw, in sljit_emit_sub() argument
2284 if (dst == (sljit_s32)tmp0 && flag_type <= SLJIT_SIG_LESS_EQUAL) { in sljit_emit_sub()
2328 FAIL_IF(emit_rr1(compiler, ins, dst, src2, src2w)); in sljit_emit_sub()
2336 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2341 return emit_siy(compiler, ins, dst, dstw, neg_src2w); in sljit_emit_sub()
2349 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, neg_src2w)); in sljit_emit_sub()
2357 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_sub()
2361 FAIL_IF(emit_ri(compiler, 0xc20a00000000 /* algfi */, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2367 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2373 FAIL_IF(emit_non_commutative(compiler, forms, dst, src1, src1w, src2, src2w)); in sljit_emit_sub()
2377 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub()
2392 if (dst & SLJIT_MEM) in sljit_emit_sub()
2393 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_sub()
2419 sljit_s32 dst, in sljit_emit_multiply() argument
2437 return emit_commutative(compiler, &multiply_overflow_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2443 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RI_A); in sljit_emit_multiply()
2448 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A); in sljit_emit_multiply()
2452 return emit_commutative(compiler, &multiply_forms, dst, src1, src1w, src2, src2w); in sljit_emit_multiply()
2456 sljit_s32 dst, in sljit_emit_bitwise_imm() argument
2464 if (IS_GPR_REG(dst)) { in sljit_emit_bitwise_imm()
2465 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2466 if (dst == src1) in sljit_emit_bitwise_imm()
2540 sljit_s32 dst, in sljit_emit_bitwise() argument
2547 if ((src2 & SLJIT_IMM) && (!(op & SLJIT_SET_Z) || (type == SLJIT_AND && dst == (sljit_s32)tmp0))) { in sljit_emit_bitwise()
2563 if (type == SLJIT_AND && dst == (sljit_s32)tmp0 && count16 == 1) { in sljit_emit_bitwise()
2581 return sljit_emit_bitwise_imm(compiler, type, dst, src1, src1w, imm, count16); in sljit_emit_bitwise()
2591 return emit_commutative(compiler, forms, dst, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2595 sljit_s32 dst, in sljit_emit_shift() argument
2600 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift()
2668 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op2() argument
2673 CHECK(check_sljit_emit_op2(compiler, op, 0, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2674 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op2()
2694 return sljit_emit_add(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2697 FAIL_IF(emit_commutative(compiler, &addc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2698 if (dst & SLJIT_MEM) in sljit_emit_op2()
2699 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
2703 return sljit_emit_sub(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2706 FAIL_IF(emit_non_commutative(compiler, &subc_forms, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2707 if (dst & SLJIT_MEM) in sljit_emit_op2()
2708 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
2711 FAIL_IF(sljit_emit_multiply(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2716 FAIL_IF(sljit_emit_bitwise(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2721 FAIL_IF(sljit_emit_shift(compiler, op, dst, src1, src1w, src2, src2w)); in sljit_emit_op2()
2725 if (dst & SLJIT_MEM) in sljit_emit_op2()
2726 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_32); in sljit_emit_op2()
2853 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_sw_from_f64() argument
2856 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64()
2872 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_sw_from_f64()
2873 return store_word(compiler, dst_r, dst, dstw, GET_OPCODE(op) >= SLJIT_CONV_S32_FROM_F64); in sljit_emit_fop1_conv_sw_from_f64()
2879 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1_conv_f64_from_sw() argument
2882 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw()
2901 if (dst & SLJIT_MEM) in sljit_emit_fop1_conv_f64_from_sw()
2902 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1_conv_f64_from_sw()
2930 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1() argument
2938 SELECT_FOP1_OPERATION_WITH_CHECKS(compiler, op, dst, dstw, src, srcw); in sljit_emit_fop1()
2940 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
2952 if (FAST_IS_REG(dst)) { in sljit_emit_fop1()
2953 if (dst == src) in sljit_emit_fop1()
2959 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), src, dst, dstw); in sljit_emit_fop1()
2976 if (!(dst & SLJIT_MEM)) in sljit_emit_fop1()
2981 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop1()
2988 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop2() argument
2996 CHECK(check_sljit_emit_fop2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_fop2()
2997 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fop2()
3002 if (FAST_IS_REG(dst)) { in sljit_emit_fop2()
3003 dst_r = dst; in sljit_emit_fop2()
3005 if (dst == src1) in sljit_emit_fop2()
3008 if (dst == src2) { in sljit_emit_fop2()
3012 src1 = dst; in sljit_emit_fop2()
3049 if (dst & SLJIT_MEM) in sljit_emit_fop2()
3050 return float_mem(compiler, FLOAT_STORE | (op & SLJIT_32), TMP_FREG1, dst, dstw); in sljit_emit_fop2()
3060 …BUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw) in sljit_emit_fast_enter() argument
3063 CHECK(check_sljit_emit_fast_enter(compiler, dst, dstw)); in sljit_emit_fast_enter()
3064 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fast_enter()
3066 if (FAST_IS_REG(dst)) in sljit_emit_fast_enter()
3067 return push_inst(compiler, lgr(gpr(dst), fast_link_r)); in sljit_emit_fast_enter()
3070 return store_word(compiler, fast_link_r, dst, dstw, 0); in sljit_emit_fast_enter()
3193 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op_flags() argument
3199 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, type)); in sljit_emit_op_flags()
3201 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags()
3210 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3211 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3256 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
3257 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
3303 …t sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, slj… in sljit_emit_const() argument
3309 CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); in sljit_emit_const()
3317 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
3325 if (dst & SLJIT_MEM) in sljit_emit_const()
3326 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
3350 sljit_s32 dst, sljit_sw dstw) in sljit_emit_put_label() argument
3356 CHECK_PTR(check_sljit_emit_put_label(compiler, dst, dstw)); in sljit_emit_put_label()
3357 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_put_label()
3363 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3372 if (dst & SLJIT_MEM) in sljit_emit_put_label()
3373 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()