Lines Matching refs:dst
412 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
414 return (pattern) | ((dst & 0xf) << 4) | (src & 0xf); \
445 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src) \
447 return (pattern) | ((dst & 0xf) << 4) | (src & 0xf); \
663 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_sw d, sljit_gpr b) \
668 r1 = (sljit_ins)(dst & 0xf) << 36; \
692 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_u8 …
697 r1 = (sljit_ins)(dst & 0xf) << 36; \
729 SLJIT_S390X_INSTRUCTION(name, sljit_gpr dst, sljit_gpr src, sljit_uw mask) \
734 r1 = (sljit_ins)(dst & 0xf) << 4; \
809 SLJIT_S390X_INSTRUCTION(flogr, sljit_gpr dst, sljit_gpr src) in SLJIT_S390X_INSTRUCTION() argument
811 sljit_ins r1 = ((sljit_ins)dst & 0xf) << 8; in SLJIT_S390X_INSTRUCTION()
818 SLJIT_S390X_INSTRUCTION(ipm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
820 return 0xb2220000 | ((sljit_ins)(dst & 0xf) << 4); in SLJIT_S390X_INSTRUCTION()
824 SLJIT_S390X_INSTRUCTION(spm, sljit_gpr dst) in SLJIT_S390X_INSTRUCTION() argument
826 return 0x0400 | ((sljit_ins)(dst & 0xf) << 4); in SLJIT_S390X_INSTRUCTION()
830 SLJIT_S390X_INSTRUCTION(risbhgz, sljit_gpr dst, sljit_gpr src, sljit_u8 start, sljit_u8 end, sljit_… in SLJIT_S390X_INSTRUCTION() argument
832 return risbhg(dst, src, start, 0x8 | end, rot); in SLJIT_S390X_INSTRUCTION()
968 static sljit_s32 load_word(struct sljit_compiler *compiler, sljit_gpr dst, in load_word() argument
982 ins = WHEN(is_u12(addr.offset), dst, l, ly, addr); in load_word()
984 ins = lg(dst, addr.offset, addr.index, addr.base); in load_word()
991 sljit_s32 dst, sljit_sw dstw, in store_word() argument
997 SLJIT_ASSERT(dst & SLJIT_MEM); in store_word()
999 FAIL_IF(make_addr_bxy(compiler, &addr, dst, dstw, tmp1)); in store_word()
1001 FAIL_IF(make_addr_bx(compiler, &addr, dst, dstw, tmp1)); in store_word()
1030 sljit_s32 dst, in emit_rr() argument
1038 if (SLOW_IS_REG(dst)) { in emit_rr()
1039 dst_r = gpr(dst & REG_MASK); in emit_rr()
1041 if (dst == src1) in emit_rr()
1043 else if (dst == src2) { in emit_rr()
1062 dst_r = gpr(dst & REG_MASK); in emit_rr()
1067 sljit_s32 dst, in emit_rrf() argument
1071 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf()
1094 sljit_s32 dst, in emit_ri() argument
1102 if (SLOW_IS_REG(dst)) { in emit_ri()
1103 dst_r = gpr(dst & REG_MASK); in emit_ri()
1105 if (dst == src1) in emit_ri()
1118 sljit_s32 dst, in emit_rie_d() argument
1122 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rie_d()
1139 sljit_s32 dst, in emit_rx() argument
1150 if (SLOW_IS_REG(dst)) { in emit_rx()
1151 dst_r = gpr(dst); in emit_rx()
1153 if (dst == src1) in emit_rx()
1155 else if (dst == (src2 & REG_MASK) || (dst == OFFS_REG(src2))) { in emit_rx()
1195 dst_r = gpr(dst); in emit_rx()
1200 sljit_s32 dst, sljit_sw dstw, in emit_siy() argument
1203 SLJIT_ASSERT(dst & SLJIT_MEM); in emit_siy()
1207 if (dst & OFFS_REG_MASK) { in emit_siy()
1211 index = gpr(OFFS_REG(dst)); in emit_siy()
1221 if (dst & REG_MASK) in emit_siy()
1227 dst_r = gpr(dst & REG_MASK); in emit_siy()
1243 sljit_s32 dst, sljit_sw dstw, in emit_commutative() argument
1267 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_commutative()
1269 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_commutative()
1274 return emit_rx(compiler, ins12, dst, src2, src2w, src1, src1w, RX_A); in emit_commutative()
1276 return emit_rx(compiler, ins20, dst, src2, src2w, src1, src1w, RXY_A); in emit_commutative()
1293 return emit_rx(compiler, ins, dst, src1, src1w, src2, src2w, rx_type); in emit_commutative()
1296 return emit_rx(compiler, ins, dst, src2, src2w, src1, src1w, rx_type); in emit_commutative()
1311 if (ins && SLOW_IS_REG(dst)) { in emit_commutative()
1312 if (dst == src1) in emit_commutative()
1313 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1315 if (dst == src2) in emit_commutative()
1316 return emit_rr(compiler, ins, dst, src2, src2w, src1, src1w); in emit_commutative()
1320 return emit_rr(compiler, ins, dst, src1, src1w, src2, src2w); in emit_commutative()
1322 return emit_rrf(compiler, ins_k, dst, src1, src1w, src2, src2w); in emit_commutative()
1326 sljit_s32 dst, sljit_sw dstw, in emit_non_commutative() argument
1347 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1349 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1352 return emit_rx(compiler, ins12, dst, src1, src1w, src2, src2w, RX_A); in emit_non_commutative()
1354 return emit_rx(compiler, ins20, dst, src1, src1w, src2, src2w, RXY_A); in emit_non_commutative()
1359 if (ins == 0 || (SLOW_IS_REG(dst) && dst == src1)) in emit_non_commutative()
1360 …return emit_rr(compiler, (mode & SLJIT_I32_OP) ? forms->op_r : forms->op_gr, dst, src1, src1w, src… in emit_non_commutative()
1362 return emit_rrf(compiler, ins, dst, src1, src1w, src2, src2w); in emit_non_commutative()
1775 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op1() argument
1785 CHECK(check_sljit_emit_op1(compiler, op, dst, dstw, src, srcw)); in sljit_emit_op1()
1786 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op1()
1789 if ((dst == SLJIT_UNUSED) && !HAS_FLAGS(op)) { in sljit_emit_op1()
1796 if (FAST_IS_REG(dst) && FAST_IS_REG(src)) { in sljit_emit_op1()
1797 dst_r = gpr(dst); in sljit_emit_op1()
1847 if (FAST_IS_REG(dst) && (src & SLJIT_IMM)) { in sljit_emit_op1()
1868 return push_load_imm_inst(compiler, gpr(dst), srcw); in sljit_emit_op1()
1873 if (FAST_IS_REG(dst) && (src & SLJIT_MEM)) { in sljit_emit_op1()
1874 sljit_gpr reg = gpr(dst); in sljit_emit_op1()
1923 if ((dst & SLJIT_MEM) in sljit_emit_op1()
1931 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
1955 if ((dst & SLJIT_MEM) && (src & SLJIT_MEM)) { in sljit_emit_op1()
1963 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
1970 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
1977 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
1984 FAIL_IF(make_addr_bxy(compiler, &mem, dst, dstw, tmp1)); in sljit_emit_op1()
1997 dst_r = SLOW_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2062 if ((dst != SLJIT_UNUSED) && (dst & SLJIT_MEM)) in sljit_emit_op1()
2063 FAIL_IF(store_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP)); in sljit_emit_op1()
2122 sljit_s32 dst, sljit_sw dstw, in sljit_emit_add() argument
2132 if (!sets_zero_overflow && is_s8(src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w)) { in sljit_emit_add()
2137 return emit_siy(compiler, ins, dst, dstw, src2w); in sljit_emit_add()
2145 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, src2w)); in sljit_emit_add()
2152 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2156 FAIL_IF(emit_ri(compiler, 0xc20400000000 /* slgfi */, dst, src1, src1w, -src2w, RIL_A)); in sljit_emit_add()
2162 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_add()
2168 FAIL_IF(emit_commutative(compiler, forms, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_add()
2172 FAIL_IF(update_zero_overflow(compiler, op, SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0)); in sljit_emit_add()
2174 if (dst & SLJIT_MEM) in sljit_emit_add()
2175 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_add()
2201 sljit_s32 dst, sljit_sw dstw, in sljit_emit_sub() argument
2210 if (dst == SLJIT_UNUSED && GET_FLAG_TYPE(op) <= SLJIT_SIG_LESS_EQUAL) { in sljit_emit_sub()
2256 …if (!sets_zero_overflow && is_s8(neg_src2w) && (src1 & SLJIT_MEM) && (dst == src1 && dstw == src1w… in sljit_emit_sub()
2261 return emit_siy(compiler, ins, dst, dstw, neg_src2w); in sljit_emit_sub()
2269 FAIL_IF(emit_rie_d(compiler, ins, dst, src1, src1w, neg_src2w)); in sljit_emit_sub()
2277 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A)); in sljit_emit_sub()
2281 FAIL_IF(emit_ri(compiler, 0xc20a00000000 /* algfi */, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2287 FAIL_IF(emit_ri(compiler, ins, dst, src1, src1w, neg_src2w, RIL_A)); in sljit_emit_sub()
2293 FAIL_IF(emit_non_commutative(compiler, forms, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_sub()
2297 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub()
2312 if (dst & SLJIT_MEM) in sljit_emit_sub()
2313 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_sub()
2339 sljit_s32 dst, sljit_sw dstw, in sljit_emit_multiply() argument
2357 return emit_commutative(compiler, &multiply_overflow_forms, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_multiply()
2363 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RI_A); in sljit_emit_multiply()
2368 return emit_ri(compiler, ins, dst, src1, src1w, src2w, RIL_A); in sljit_emit_multiply()
2372 return emit_commutative(compiler, &multiply_forms, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_multiply()
2376 sljit_s32 dst, sljit_sw dstw, in sljit_emit_bitwise_imm() argument
2384 if (SLOW_IS_REG(dst)) { in sljit_emit_bitwise_imm()
2385 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2386 if (dst == src1) in sljit_emit_bitwise_imm()
2460 sljit_s32 dst, sljit_sw dstw, in sljit_emit_bitwise() argument
2467 if ((src2 & SLJIT_IMM) && (!(op & SLJIT_SET_Z) || (type == SLJIT_AND && dst == SLJIT_UNUSED))) { in sljit_emit_bitwise()
2483 if (type == SLJIT_AND && dst == SLJIT_UNUSED && count16 == 1) { in sljit_emit_bitwise()
2501 return sljit_emit_bitwise_imm(compiler, type, dst, dstw, src1, src1w, imm, count16); in sljit_emit_bitwise()
2511 return emit_commutative(compiler, forms, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_bitwise()
2515 sljit_s32 dst, sljit_sw dstw, in sljit_emit_shift() argument
2520 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift()
2588 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op2() argument
2593 CHECK(check_sljit_emit_op2(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2594 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_op2()
2598 if (dst == SLJIT_UNUSED && !HAS_FLAGS(op)) in sljit_emit_op2()
2619 return sljit_emit_add(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2621 FAIL_IF(emit_commutative(compiler, &addc_forms, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2622 if (dst & SLJIT_MEM) in sljit_emit_op2()
2623 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_op2()
2626 return sljit_emit_sub(compiler, op, dst, dstw, src1, src1w, src2, src2w); in sljit_emit_op2()
2628 FAIL_IF(emit_non_commutative(compiler, &subc_forms, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2629 if (dst & SLJIT_MEM) in sljit_emit_op2()
2630 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_op2()
2633 FAIL_IF(sljit_emit_multiply(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2638 FAIL_IF(sljit_emit_bitwise(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2643 FAIL_IF(sljit_emit_shift(compiler, op, dst, dstw, src1, src1w, src2, src2w)); in sljit_emit_op2()
2647 if (dst & SLJIT_MEM) in sljit_emit_op2()
2648 return store_word(compiler, tmp0, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_op2()
2715 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop1() argument
2723 sljit_s32 dst, sljit_sw dstw, in sljit_emit_fop2() argument
2735 …BUTE sljit_s32 sljit_emit_fast_enter(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw) in sljit_emit_fast_enter() argument
2738 CHECK(check_sljit_emit_fast_enter(compiler, dst, dstw)); in sljit_emit_fast_enter()
2739 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_fast_enter()
2741 if (FAST_IS_REG(dst)) in sljit_emit_fast_enter()
2742 return push_inst(compiler, lgr(gpr(dst), fast_link_r)); in sljit_emit_fast_enter()
2745 return store_word(compiler, fast_link_r, dst, dstw, 0); in sljit_emit_fast_enter()
2844 sljit_s32 dst, sljit_sw dstw, in sljit_emit_op_flags() argument
2850 CHECK(check_sljit_emit_op_flags(compiler, op, dst, dstw, type)); in sljit_emit_op_flags()
2852 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags()
2861 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
2862 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP)); in sljit_emit_op_flags()
2905 if (dst & SLJIT_MEM) in sljit_emit_op_flags()
2906 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_op_flags()
2952 …t sljit_const* sljit_emit_const(struct sljit_compiler *compiler, sljit_s32 dst, sljit_sw dstw, slj… in sljit_emit_const() argument
2958 CHECK_PTR(check_sljit_emit_const(compiler, dst, dstw, init_value)); in sljit_emit_const()
2966 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
2974 if (dst & SLJIT_MEM) in sljit_emit_const()
2975 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
2999 sljit_s32 dst, sljit_sw dstw) in sljit_emit_put_label() argument
3005 CHECK_PTR(check_sljit_emit_put_label(compiler, dst, dstw)); in sljit_emit_put_label()
3006 ADJUST_LOCAL_OFFSET(dst, dstw); in sljit_emit_put_label()
3012 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3021 if (dst & SLJIT_MEM) in sljit_emit_put_label()
3022 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()