Lines Matching refs:dst_r

866 …atic sljit_s32 update_zero_overflow(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r)  in update_zero_overflow()  argument
876 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
998 static sljit_s32 load_word(struct sljit_compiler *compiler, sljit_gpr dst_r, in load_word() argument
1009 …return push_inst(compiler, 0x58000000 /* l */ | R20A(dst_r) | R16A(addr.index) | R12A(addr.base) |… in load_word()
1015 …return push_inst(compiler, ins | R36A(dst_r) | R32A(addr.index) | R28A(addr.base) | disp_s20(addr.… in load_word()
1019 static sljit_s32 load_unsigned_word(struct sljit_compiler *compiler, sljit_gpr dst_r, in load_unsigned_word() argument
1031 …return push_inst(compiler, ins | R36A(dst_r) | R32A(addr.index) | R28A(addr.base) | disp_s20(addr.… in load_unsigned_word()
1058 sljit_gpr dst_r, in emit_move() argument
1061 SLJIT_ASSERT(!IS_GPR_REG(src) || dst_r != gpr(src & REG_MASK)); in emit_move()
1064 return push_load_imm_inst(compiler, dst_r, srcw); in emit_move()
1067 return load_word(compiler, dst_r, src, srcw, (compiler->mode & SLJIT_32) != 0); in emit_move()
1070 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1078 sljit_gpr dst_r = tmp0; in emit_rr() local
1083 dst_r = gpr(dst); in emit_rr()
1088 dst_r = tmp0; in emit_rr()
1094 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1101 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | R0A(src_r))); in emit_rr()
1106 dst_r = gpr(dst & REG_MASK); in emit_rr()
1107 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1114 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1() local
1122 return push_inst(compiler, ins | R4A(dst_r) | R0A(src_r)); in emit_rr1()
1130 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf() local
1144 return push_inst(compiler, ins | R4A(dst_r) | R0A(src1_r) | R12A(src2_r)); in emit_rrf()
1158 sljit_gpr dst_r = tmp0; in emit_ri() local
1162 dst_r = gpr(dst); in emit_ri()
1169 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1172 return push_inst(compiler, ins | R36A(dst_r) | (src2w & 0xffffffff)); in emit_ri()
1173 return push_inst(compiler, ins | R20A(dst_r) | (src2w & 0xffff)); in emit_ri()
1181 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d() local
1189 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | (sljit_ins)(src2w & 0xffff) << 16); in emit_rie_d()
1203 sljit_gpr dst_r = tmp0; in emit_rx() local
1210 dst_r = gpr(dst); in emit_rx()
1215 dst_r = tmp0; in emit_rx()
1221 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1245 ins |= R20A(dst_r) | R16A(index) | R12A(base) | (sljit_ins)src2w; in emit_rx()
1247 ins |= R36A(dst_r) | R32A(index) | R28A(base) | disp_s20((sljit_s32)src2w); in emit_rx()
1254 dst_r = gpr(dst); in emit_rx()
1255 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rx()
1264 sljit_gpr dst_r = tmp1; in emit_siy() local
1274 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1281 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1286 dst_r = gpr(dst & REG_MASK); in emit_siy()
1288 …return push_inst(compiler, ins | ((sljit_ins)(srcw & 0xff) << 32) | R28A(dst_r) | disp_s20((sljit_… in emit_siy()
1973 static sljit_s32 sljit_emit_clz_ctz(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r,… in sljit_emit_clz_ctz() argument
1999 if (!is_ctz && dst_r != tmp0) in sljit_emit_clz_ctz()
2000 …return push_inst(compiler, 0xec00000000d9 /* aghik */ | R36A(dst_r) | R32A(tmp0) | ((sljit_ins)(-3… in sljit_emit_clz_ctz()
2008 if (dst_r == tmp0) in sljit_emit_clz_ctz()
2011 …return push_inst(compiler, ((op & SLJIT_32) ? 0x1800 /* lr */ : 0xb9040000 /* lgr */) | R4A(dst_r)… in sljit_emit_clz_ctz()
2023 sljit_gpr dst_r; in sljit_emit_op1() local
2035 dst_r = gpr(dst); in sljit_emit_op1()
2040 ins = llcr(dst_r, src_r); in sljit_emit_op1()
2043 ins = lbr(dst_r, src_r); in sljit_emit_op1()
2046 ins = llhr(dst_r, src_r); in sljit_emit_op1()
2049 ins = lhr(dst_r, src_r); in sljit_emit_op1()
2052 if (dst_r == src_r) in sljit_emit_op1()
2054 ins = lr(dst_r, src_r); in sljit_emit_op1()
2058 ins = llgcr(dst_r, src_r); in sljit_emit_op1()
2061 ins = lgbr(dst_r, src_r); in sljit_emit_op1()
2064 ins = llghr(dst_r, src_r); in sljit_emit_op1()
2067 ins = lghr(dst_r, src_r); in sljit_emit_op1()
2070 ins = llgfr(dst_r, src_r); in sljit_emit_op1()
2073 ins = lgfr(dst_r, src_r); in sljit_emit_op1()
2077 if (dst_r == src_r) in sljit_emit_op1()
2079 ins = lgr(dst_r, src_r); in sljit_emit_op1()
2245 dst_r = FAST_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2259 if (src_r != dst_r) in sljit_emit_op1()
2260 FAIL_IF(push_inst(compiler, lgr(dst_r, src_r))); in sljit_emit_op1()
2262 FAIL_IF(push_inst(compiler, xgr(dst_r, tmp1))); in sljit_emit_op1()
2267 FAIL_IF(push_inst(compiler, xilf(dst_r, 0xffffffff))); in sljit_emit_op1()
2270 if (src_r != dst_r) in sljit_emit_op1()
2271 FAIL_IF(push_inst(compiler, lr(dst_r, src_r))); in sljit_emit_op1()
2273 FAIL_IF(push_inst(compiler, xr(dst_r, tmp1))); in sljit_emit_op1()
2281 FAIL_IF(sljit_emit_clz_ctz(compiler, op, dst_r, src_r)); in sljit_emit_op1()
2288 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_op1()
2291 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_32); in sljit_emit_op1()
2513 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub() local
2522 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2525 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_sub()
2597 sljit_gpr dst_r = tmp0; in sljit_emit_bitwise_imm() local
2601 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2607 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2611 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2612 return push_inst(compiler, 0xc00b00000000 /* nilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2616 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2617 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2622 return push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32)); in sljit_emit_bitwise_imm()
2624 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2628 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | R20A(dst_r) | (imm >> 48))); in sljit_emit_bitwise_imm()
2630 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | R20A(dst_r) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2632 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | R20A(dst_r) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2634 return push_inst(compiler, 0xa50b0000 /* oill */ | R20A(dst_r) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2639 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2641 return push_inst(compiler, 0xc00700000000 /* xilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2736 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift() local
2765 if ((op & SLJIT_32) && dst_r == src_r) { in sljit_emit_shift()
2773 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | R12A(base_r) | imm)); in sljit_emit_shift()
2782 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16))); in sljit_emit_shift()
2786 return push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2796 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_rotate() local
2829 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16)); in sljit_emit_rotate()
3158 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64() local
3172 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | F0(src))); 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()
3184 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw() local
3201 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | R0(src))); in sljit_emit_fop1_conv_f64_from_sw()
3235 sljit_s32 dst_r; in sljit_emit_fop1() local
3242 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
3245 …FAIL_IF(emit_float(compiler, 0xb3040000 /* ldebr */, 0xed0000000004 /* ldeb */, dst_r, src, srcw)); in sljit_emit_fop1()
3248 …m(compiler, FLOAT_LOAD | (op == SLJIT_CONV_F32_FROM_F64 ? 0 : (op & SLJIT_32)), dst_r, src, srcw)); in sljit_emit_fop1()
3249 src = dst_r; in sljit_emit_fop1()
3275 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | F0(src))); in sljit_emit_fop1()
3281 SLJIT_ASSERT(dst_r == TMP_FREG1); in sljit_emit_fop1()
3286 #define FLOAT_MOV(op, dst_r, src_r) \ argument
3287 (((op & SLJIT_32) ? 0x3800 /* ler */ : 0x2800 /* ldr */) | F4(dst_r) | F0(src_r))
3294 sljit_s32 dst_r = TMP_FREG1; in sljit_emit_fop2() local
3305 dst_r = dst; in sljit_emit_fop2()
3324 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), dst_r, src1, src1w)); in sljit_emit_fop2()
3326 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()
3349 FAIL_IF(emit_float(compiler, ins_r, ins, dst_r, src2, src2w)); in sljit_emit_fop2()
3354 SLJIT_ASSERT(dst_r != TMP_FREG1); in sljit_emit_fop2()
3498 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags() local
3508 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3516 loc_r = dst_r; in sljit_emit_op_flags()
3536 #define LEVAL(i) i(dst_r, loc_r) in sljit_emit_op_flags()
3554 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
3668 sljit_gpr dst_r; in sljit_emit_const() local
3679 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
3681 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | lgrl(dst_r, 0))); in sljit_emit_const()
3684 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
3688 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
3715 sljit_gpr dst_r; in sljit_emit_put_label() local
3725 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3728 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_put_label()
3731 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_put_label()
3735 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()