Lines Matching refs:dst_r

831 …atic sljit_s32 update_zero_overflow(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r)  in update_zero_overflow()  argument
841 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
993 static SLJIT_INLINE sljit_s32 load_word(struct sljit_compiler *compiler, sljit_gpr dst_r, in load_word() argument
997 return load_store_op(compiler, dst_r, src, srcw, is_32bit, load_forms); in load_word()
1001 static sljit_s32 load_unsigned_word(struct sljit_compiler *compiler, sljit_gpr dst_r, in load_unsigned_word() argument
1013 …return push_inst(compiler, ins | R36A(dst_r) | R32A(addr.index) | R28A(addr.base) | disp_s20(addr.… in load_unsigned_word()
1027 sljit_gpr dst_r, in emit_move() argument
1032 SLJIT_ASSERT(!IS_GPR_REG(src) || dst_r != gpr(src & REG_MASK)); in emit_move()
1035 return push_load_imm_inst(compiler, dst_r, srcw); in emit_move()
1038 return load_word(compiler, dst_r, src, srcw, (compiler->mode & SLJIT_32) != 0); in emit_move()
1041 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1049 sljit_gpr dst_r = tmp0; in emit_rr() local
1054 dst_r = gpr(dst); in emit_rr()
1059 dst_r = tmp0; in emit_rr()
1065 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1072 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | R0A(src_r))); in emit_rr()
1077 dst_r = gpr(dst & REG_MASK); in emit_rr()
1078 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1085 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1() local
1093 return push_inst(compiler, ins | R4A(dst_r) | R0A(src_r)); in emit_rr1()
1101 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf() local
1115 return push_inst(compiler, ins | R4A(dst_r) | R0A(src1_r) | R12A(src2_r)); in emit_rrf()
1129 sljit_gpr dst_r = tmp0; in emit_ri() local
1133 dst_r = gpr(dst); in emit_ri()
1140 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1143 return push_inst(compiler, ins | R36A(dst_r) | (src2w & 0xffffffff)); in emit_ri()
1144 return push_inst(compiler, ins | R20A(dst_r) | (src2w & 0xffff)); in emit_ri()
1152 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d() local
1160 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | (sljit_ins)(src2w & 0xffff) << 16); in emit_rie_d()
1174 sljit_gpr dst_r = tmp0; in emit_rx() local
1181 dst_r = gpr(dst); in emit_rx()
1186 dst_r = tmp0; in emit_rx()
1192 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1216 ins |= R20A(dst_r) | R16A(index) | R12A(base) | (sljit_ins)src2w; in emit_rx()
1218 ins |= R36A(dst_r) | R32A(index) | R28A(base) | disp_s20((sljit_s32)src2w); in emit_rx()
1225 dst_r = gpr(dst); in emit_rx()
1226 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rx()
1233 sljit_gpr dst_r = tmp1; in emit_siy() local
1245 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1252 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1257 dst_r = gpr(dst & REG_MASK); in emit_siy()
1259 …return push_inst(compiler, ins | ((sljit_ins)(srcw & 0xff) << 32) | R28A(dst_r) | disp_s20((sljit_… in emit_siy()
1966 static sljit_s32 sljit_emit_clz_ctz(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r,… in sljit_emit_clz_ctz() argument
1992 if (!is_ctz && dst_r != tmp0) in sljit_emit_clz_ctz()
1993 …return push_inst(compiler, 0xec00000000d9 /* aghik */ | R36A(dst_r) | R32A(tmp0) | ((sljit_ins)(-3… in sljit_emit_clz_ctz()
2001 if (dst_r == tmp0) in sljit_emit_clz_ctz()
2004 …return push_inst(compiler, ((op & SLJIT_32) ? 0x1800 /* lr */ : 0xb9040000 /* lgr */) | R4A(dst_r)… in sljit_emit_clz_ctz()
2089 sljit_gpr dst_r; in sljit_emit_op1() local
2101 dst_r = gpr(dst); in sljit_emit_op1()
2106 ins = llcr(dst_r, src_r); in sljit_emit_op1()
2109 ins = lbr(dst_r, src_r); in sljit_emit_op1()
2112 ins = llhr(dst_r, src_r); in sljit_emit_op1()
2115 ins = lhr(dst_r, src_r); in sljit_emit_op1()
2118 if (dst_r == src_r) in sljit_emit_op1()
2120 ins = lr(dst_r, src_r); in sljit_emit_op1()
2124 ins = llgcr(dst_r, src_r); in sljit_emit_op1()
2127 ins = lgbr(dst_r, src_r); in sljit_emit_op1()
2130 ins = llghr(dst_r, src_r); in sljit_emit_op1()
2133 ins = lghr(dst_r, src_r); in sljit_emit_op1()
2136 ins = llgfr(dst_r, src_r); in sljit_emit_op1()
2139 ins = lgfr(dst_r, src_r); in sljit_emit_op1()
2143 if (dst_r == src_r) in sljit_emit_op1()
2145 ins = lgr(dst_r, src_r); in sljit_emit_op1()
2311 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_op1()
2323 FAIL_IF(sljit_emit_clz_ctz(compiler, op, dst_r, src_r)); in sljit_emit_op1()
2338 return store_word(compiler, dst_r, dst, dstw, op & SLJIT_32); in sljit_emit_op1()
2559 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub() local
2568 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2571 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_sub()
2643 sljit_gpr dst_r = tmp0; in sljit_emit_bitwise_imm() local
2647 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2653 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2657 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2658 return push_inst(compiler, 0xc00b00000000 /* nilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2662 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2663 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2668 return push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32)); in sljit_emit_bitwise_imm()
2670 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2674 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | R20A(dst_r) | (imm >> 48))); in sljit_emit_bitwise_imm()
2676 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | R20A(dst_r) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2678 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | R20A(dst_r) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2680 return push_inst(compiler, 0xa50b0000 /* oill */ | R20A(dst_r) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2685 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2687 return push_inst(compiler, 0xc00700000000 /* xilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2782 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift() local
2811 if ((op & SLJIT_32) && dst_r == src_r) { in sljit_emit_shift()
2819 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | R12A(base_r) | imm)); in sljit_emit_shift()
2828 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16))); in sljit_emit_shift()
2832 return push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2842 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_rotate() local
2875 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16)); in sljit_emit_rotate()
3007 sljit_gpr dst_r = gpr(dst_reg); in sljit_emit_shift_into() local
3032 if (dst_r == src1_r) { in sljit_emit_shift_into()
3034 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | (sljit_ins)src3w)); in sljit_emit_shift_into()
3037 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src1_r) | ((sljit_ins)src3w << 16))); in sljit_emit_shift_into()
3041 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src1_r) | ((sljit_ins)src3w << 16))); in sljit_emit_shift_into()
3052 return push_inst(compiler, ins | R36A(dst_r) | R32A(src2_r)); in sljit_emit_shift_into()
3058 if (dst_r == src3_r) { in sljit_emit_shift_into()
3074 if (dst_r == src1_r) { in sljit_emit_shift_into()
3076 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | R12A(src3_r))); in sljit_emit_shift_into()
3079 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src1_r) | R28A(src3_r))); in sljit_emit_shift_into()
3091 return push_inst(compiler, 0x1600 /* or */ | R4A(dst_r) | R0A(tmp0)); in sljit_emit_shift_into()
3095 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src1_r) | R28A(src3_r))); in sljit_emit_shift_into()
3114 return push_inst(compiler, 0xb9810000 /* ogr */ | R4A(dst_r) | R0A(tmp0)); in sljit_emit_shift_into()
3152 sljit_gpr dst_r = link_r; in sljit_emit_op_dst() local
3165 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_op_dst()
3168 FAIL_IF(load_word(compiler, dst_r, SLJIT_MEM1(SLJIT_SP), compiler->local_size + size, 0)); in sljit_emit_op_dst()
3173 return store_word(compiler, dst_r, dst, dstw, 0); in sljit_emit_op_dst()
3257 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64() local
3271 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | F0(src))); in sljit_emit_fop1_conv_sw_from_f64()
3274 return store_word(compiler, dst_r, dst, dstw, GET_OPCODE(op) >= SLJIT_CONV_S32_FROM_F64); in sljit_emit_fop1_conv_sw_from_f64()
3283 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_w() local
3294 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | R0(src))); in sljit_emit_fop1_conv_f64_from_w()
3362 sljit_s32 dst_r; in sljit_emit_fop1() local
3369 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
3372 …FAIL_IF(emit_float(compiler, 0xb3040000 /* ldebr */, 0xed0000000004 /* ldeb */, dst_r, src, srcw)); in sljit_emit_fop1()
3375 …m(compiler, FLOAT_LOAD | (op == SLJIT_CONV_F32_FROM_F64 ? 0 : (op & SLJIT_32)), dst_r, src, srcw)); in sljit_emit_fop1()
3376 src = dst_r; in sljit_emit_fop1()
3402 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | F0(src))); in sljit_emit_fop1()
3411 #define FLOAT_MOV(op, dst_r, src_r) \ argument
3412 (((op & SLJIT_32) ? 0x3800 /* ler */ : 0x2800 /* ldr */) | F4(dst_r) | F0(src_r))
3419 sljit_s32 dst_r = TMP_FREG1; in sljit_emit_fop2() local
3430 dst_r = dst; in sljit_emit_fop2()
3449 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), dst_r, src1, src1w)); in sljit_emit_fop2()
3451 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()
3474 FAIL_IF(emit_float(compiler, ins_r, ins, dst_r, src2, src2w)); in sljit_emit_fop2()
3689 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags() local
3704 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3712 loc_r = dst_r; in sljit_emit_op_flags()
3733 #define LEVAL(i) i(dst_r, loc_r) in sljit_emit_op_flags()
3751 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
3763 sljit_gpr dst_r = gpr(dst_reg); in sljit_emit_select() local
3778 FAIL_IF(load_word(compiler, dst_r, src1, src1w, type & SLJIT_32)); in sljit_emit_select()
3783 …piler, ((type & SLJIT_32) ? 0x1800 /* lr */ : 0xb9040000 /* lgr */) | R4A(dst_r) | R0A(gpr(src2_re… in sljit_emit_select()
3813 …return push_inst(compiler, ins | R36A(dst_r) | (mask << 32) | R28A(src_r) | disp_s20((sljit_s32)sr… in sljit_emit_select()
3822 return push_inst(compiler, ins | R36A(dst_r) | (mask << 32) | (sljit_ins)(src1w & 0xffff) << 16); in sljit_emit_select()
3831 return push_inst(compiler, ins | (mask << 12) | R4A(dst_r) | R0A(src_r)); in sljit_emit_select()
4291 sljit_gpr dst_r; in sljit_emit_simd_sign() local
4329 dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_simd_sign()
4330 FAIL_IF(push_inst(compiler, 0xe70000000021 /* vlgv */ | R36A(dst_r) | F32(TMP_FREG1) in sljit_emit_simd_sign()
4333 if (dst_r == tmp0) in sljit_emit_simd_sign()
4449 sljit_gpr dst_r; in sljit_emit_const() local
4460 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
4462 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_const()
4465 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
4469 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
4494 sljit_gpr dst_r; in sljit_emit_mov_addr() local
4504 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_mov_addr()
4507 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_mov_addr()
4510 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_mov_addr()
4514 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_mov_addr()