Lines Matching refs:dst_r

837 …atic sljit_s32 update_zero_overflow(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r)  in update_zero_overflow()  argument
847 FAIL_IF(push_inst(compiler, (op & SLJIT_I32_OP) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
1014 sljit_gpr dst_r, in emit_move() argument
1017 SLJIT_ASSERT(!SLOW_IS_REG(src) || dst_r != gpr(src & REG_MASK)); in emit_move()
1020 return push_load_imm_inst(compiler, dst_r, srcw); in emit_move()
1023 return load_word(compiler, dst_r, src, srcw, (compiler->mode & SLJIT_I32_OP) != 0); in emit_move()
1026 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1034 sljit_gpr dst_r = tmp0; in emit_rr() local
1039 dst_r = gpr(dst & REG_MASK); in emit_rr()
1044 dst_r = tmp0; in emit_rr()
1050 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1057 FAIL_IF(push_inst(compiler, ins | (dst_r << 4) | src_r)); in emit_rr()
1062 dst_r = gpr(dst & REG_MASK); in emit_rr()
1063 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1071 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf() local
1085 return push_inst(compiler, ins | (dst_r << 4) | src1_r | (src2_r << 12)); in emit_rrf()
1099 sljit_gpr dst_r = tmp0; in emit_ri() local
1103 dst_r = gpr(dst & REG_MASK); in emit_ri()
1110 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1113 return push_inst(compiler, ins | (dst_r << 36) | (src2w & 0xffffffff)); in emit_ri()
1114 return push_inst(compiler, ins | (dst_r << 20) | (src2w & 0xffff)); in emit_ri()
1122 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rie_d() local
1130 return push_inst(compiler, ins | (dst_r << 36) | (src_r << 32) | (src2w & 0xffff) << 16); in emit_rie_d()
1144 sljit_gpr dst_r = tmp0; in emit_rx() local
1151 dst_r = gpr(dst); in emit_rx()
1156 dst_r = tmp0; in emit_rx()
1162 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1186 ins |= (dst_r << 20) | (index << 16) | (base << 12) | src2w; in emit_rx()
1188 ins |= (dst_r << 36) | (index << 32) | (base << 28) | disp_s20(src2w); in emit_rx()
1195 dst_r = gpr(dst); in emit_rx()
1196 return push_inst(compiler, (compiler->mode & SLJIT_I32_OP) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rx()
1205 sljit_gpr dst_r = tmp1; in emit_siy() local
1215 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1222 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1227 dst_r = gpr(dst & REG_MASK); in emit_siy()
1229 return push_inst(compiler, ins | ((srcw & 0xff) << 32) | (dst_r << 28) | disp_s20(dstw)); in emit_siy()
1780 sljit_gpr dst_r; in sljit_emit_op1() local
1797 dst_r = gpr(dst); in sljit_emit_op1()
1802 ins = llcr(dst_r, src_r); in sljit_emit_op1()
1805 ins = lbr(dst_r, src_r); in sljit_emit_op1()
1808 ins = llhr(dst_r, src_r); in sljit_emit_op1()
1811 ins = lhr(dst_r, src_r); in sljit_emit_op1()
1814 ins = lr(dst_r, src_r); in sljit_emit_op1()
1818 ins = llgcr(dst_r, src_r); in sljit_emit_op1()
1821 ins = lgbr(dst_r, src_r); in sljit_emit_op1()
1824 ins = llghr(dst_r, src_r); in sljit_emit_op1()
1827 ins = lghr(dst_r, src_r); in sljit_emit_op1()
1830 ins = llgfr(dst_r, src_r); in sljit_emit_op1()
1833 ins = lgfr(dst_r, src_r); in sljit_emit_op1()
1837 ins = lgr(dst_r, src_r); in sljit_emit_op1()
1997 dst_r = SLOW_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2009 if (src_r != dst_r) in sljit_emit_op1()
2010 FAIL_IF(push_inst(compiler, lgr(dst_r, src_r))); in sljit_emit_op1()
2012 FAIL_IF(push_inst(compiler, xgr(dst_r, tmp1))); in sljit_emit_op1()
2017 FAIL_IF(push_inst(compiler, xilf(dst_r, -1))); in sljit_emit_op1()
2020 if (src_r != dst_r) in sljit_emit_op1()
2021 FAIL_IF(push_inst(compiler, lr(dst_r, src_r))); in sljit_emit_op1()
2023 FAIL_IF(push_inst(compiler, xr(dst_r, tmp1))); in sljit_emit_op1()
2028 FAIL_IF(push_inst(compiler, lcgr(dst_r, src_r))); in sljit_emit_op1()
2032 FAIL_IF(push_inst(compiler, lcr(dst_r, src_r))); in sljit_emit_op1()
2037 if (dst_r != tmp0) in sljit_emit_op1()
2038 FAIL_IF(push_inst(compiler, lgr(dst_r, tmp0))); in sljit_emit_op1()
2048 if (dst_r != tmp0) in sljit_emit_op1()
2049 FAIL_IF(push_inst(compiler, lr(dst_r, tmp0))); in sljit_emit_op1()
2059 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_op1()
2063 FAIL_IF(store_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP)); in sljit_emit_op1()
2297 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub() local
2306 FAIL_IF(push_inst(compiler, (op & SLJIT_I32_OP) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2309 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_sub()
2381 sljit_gpr dst_r = tmp0; in sljit_emit_bitwise_imm() local
2385 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2391 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2395 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2396 return push_inst(compiler, 0xc00b00000000 /* nilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2400 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2401 return push_inst(compiler, 0xc00d00000000 /* oilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2406 return push_inst(compiler, 0xc00c00000000 /* oihf */ | (dst_r << 36) | (imm >> 32)); in sljit_emit_bitwise_imm()
2408 return push_inst(compiler, 0xc00d00000000 /* oilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2412 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | (dst_r << 20) | (imm >> 48))); in sljit_emit_bitwise_imm()
2414 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | (dst_r << 20) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2416 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | (dst_r << 20) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2418 return push_inst(compiler, 0xa50b0000 /* oill */ | (dst_r << 20) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2423 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | (dst_r << 36) | (imm >> 32))); in sljit_emit_bitwise_imm()
2425 return push_inst(compiler, 0xc00700000000 /* xilf */ | (dst_r << 36) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2520 sljit_gpr dst_r = SLOW_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift() local
2540 if ((op & SLJIT_I32_OP) && dst_r == src_r) { in sljit_emit_shift()
2548 FAIL_IF(push_inst(compiler, ins | (dst_r << 20) | (base_r << 12) | imm)); in sljit_emit_shift()
2558 FAIL_IF(push_inst(compiler, ins | (dst_r << 36) | (src_r << 32) | (base_r << 28) | (imm << 16))); in sljit_emit_shift()
2562 return push_inst(compiler, (op & SLJIT_I32_OP) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2852 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags() local
2862 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP)); in sljit_emit_op_flags()
2868 loc_r = dst_r; in sljit_emit_op_flags()
2888 #define LEVAL(i) i(dst_r, loc_r) in sljit_emit_op_flags()
2906 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_I32_OP); in sljit_emit_op_flags()
2916 sljit_gpr dst_r = gpr(dst_reg & ~SLJIT_I32_OP); in sljit_emit_cmov() local
2927 #define LEVAL(i) i(dst_r, src_r, mask) in sljit_emit_cmov()
2955 sljit_gpr dst_r; in sljit_emit_const() local
2966 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
2968 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | lgrl(dst_r, 0))); in sljit_emit_const()
2971 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
2975 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
3002 sljit_gpr dst_r; in sljit_emit_put_label() local
3012 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3015 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_put_label()
3018 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_put_label()
3022 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()