Lines Matching refs:dst_r
849 …atic sljit_s32 update_zero_overflow(struct sljit_compiler *compiler, sljit_s32 op, sljit_gpr dst_r) in update_zero_overflow() argument
859 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r))); in update_zero_overflow()
1027 sljit_gpr dst_r, in emit_move() argument
1030 SLJIT_ASSERT(!IS_GPR_REG(src) || dst_r != gpr(src & REG_MASK)); in emit_move()
1033 return push_load_imm_inst(compiler, dst_r, srcw); in emit_move()
1036 return load_word(compiler, dst_r, src, srcw, (compiler->mode & SLJIT_32) != 0); in emit_move()
1039 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, src_r) : lgr(dst_r, src_r)); in emit_move()
1047 sljit_gpr dst_r = tmp0; in emit_rr() local
1052 dst_r = gpr(dst); in emit_rr()
1057 dst_r = tmp0; in emit_rr()
1063 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rr()
1070 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | R0A(src_r))); in emit_rr()
1075 dst_r = gpr(dst & REG_MASK); in emit_rr()
1076 return push_inst(compiler, (compiler->mode & SLJIT_32) ? lr(dst_r, tmp0) : lgr(dst_r, tmp0)); in emit_rr()
1083 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rr1() local
1091 return push_inst(compiler, ins | R4A(dst_r) | R0A(src_r)); in emit_rr1()
1099 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in emit_rrf() local
1113 return push_inst(compiler, ins | R4A(dst_r) | R0A(src1_r) | R12A(src2_r)); in emit_rrf()
1127 sljit_gpr dst_r = tmp0; in emit_ri() local
1131 dst_r = gpr(dst); in emit_ri()
1138 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_ri()
1141 return push_inst(compiler, ins | R36A(dst_r) | (src2w & 0xffffffff)); in emit_ri()
1142 return push_inst(compiler, ins | R20A(dst_r) | (src2w & 0xffff)); in emit_ri()
1150 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in emit_rie_d() local
1158 return push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | (sljit_ins)(src2w & 0xffff) << 16); in emit_rie_d()
1172 sljit_gpr dst_r = tmp0; in emit_rx() local
1179 dst_r = gpr(dst); in emit_rx()
1184 dst_r = tmp0; in emit_rx()
1190 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in emit_rx()
1214 ins |= R20A(dst_r) | R16A(index) | R12A(base) | (sljit_ins)src2w; in emit_rx()
1216 ins |= R36A(dst_r) | R32A(index) | R28A(base) | disp_s20((sljit_s32)src2w); in emit_rx()
1223 dst_r = gpr(dst); in emit_rx()
1224 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
1243 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, index))); in emit_siy()
1250 FAIL_IF(push_inst(compiler, la(tmp1, 0, dst_r, tmp1))); in emit_siy()
1255 dst_r = gpr(dst & REG_MASK); in emit_siy()
1257 …return push_inst(compiler, ins | ((sljit_ins)(srcw & 0xff) << 32) | R28A(dst_r) | disp_s20((sljit_… in emit_siy()
1870 sljit_gpr dst_r; in sljit_emit_op1() local
1882 dst_r = gpr(dst); in sljit_emit_op1()
1887 ins = llcr(dst_r, src_r); in sljit_emit_op1()
1890 ins = lbr(dst_r, src_r); in sljit_emit_op1()
1893 ins = llhr(dst_r, src_r); in sljit_emit_op1()
1896 ins = lhr(dst_r, src_r); in sljit_emit_op1()
1899 if (dst_r == src_r) in sljit_emit_op1()
1901 ins = lr(dst_r, src_r); in sljit_emit_op1()
1905 ins = llgcr(dst_r, src_r); in sljit_emit_op1()
1908 ins = lgbr(dst_r, src_r); in sljit_emit_op1()
1911 ins = llghr(dst_r, src_r); in sljit_emit_op1()
1914 ins = lghr(dst_r, src_r); in sljit_emit_op1()
1917 ins = llgfr(dst_r, src_r); in sljit_emit_op1()
1920 ins = lgfr(dst_r, src_r); in sljit_emit_op1()
1924 if (dst_r == src_r) in sljit_emit_op1()
1926 ins = lgr(dst_r, src_r); in sljit_emit_op1()
2092 dst_r = FAST_IS_REG(dst) ? gpr(REG_MASK & dst) : tmp0; in sljit_emit_op1()
2104 if (src_r != dst_r) in sljit_emit_op1()
2105 FAIL_IF(push_inst(compiler, lgr(dst_r, src_r))); in sljit_emit_op1()
2107 FAIL_IF(push_inst(compiler, xgr(dst_r, tmp1))); in sljit_emit_op1()
2112 FAIL_IF(push_inst(compiler, xilf(dst_r, 0xffffffff))); in sljit_emit_op1()
2115 if (src_r != dst_r) in sljit_emit_op1()
2116 FAIL_IF(push_inst(compiler, lr(dst_r, src_r))); in sljit_emit_op1()
2118 FAIL_IF(push_inst(compiler, xr(dst_r, tmp1))); in sljit_emit_op1()
2124 if (dst_r != tmp0) in sljit_emit_op1()
2125 FAIL_IF(push_inst(compiler, lgr(dst_r, tmp0))); in sljit_emit_op1()
2135 if (dst_r != tmp0) in sljit_emit_op1()
2136 FAIL_IF(push_inst(compiler, lr(dst_r, tmp0))); in sljit_emit_op1()
2146 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_op1()
2150 FAIL_IF(store_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op1()
2377 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_sub() local
2386 FAIL_IF(push_inst(compiler, (op & SLJIT_32) ? lcr(tmp1, dst_r) : lcgr(tmp1, dst_r))); in sljit_emit_sub()
2389 FAIL_IF(update_zero_overflow(compiler, op, dst_r)); in sljit_emit_sub()
2461 sljit_gpr dst_r = tmp0; in sljit_emit_bitwise_imm() local
2465 dst_r = gpr(dst & REG_MASK); in sljit_emit_bitwise_imm()
2471 FAIL_IF(emit_move(compiler, dst_r, src1, src1w)); in sljit_emit_bitwise_imm()
2475 FAIL_IF(push_inst(compiler, 0xc00a00000000 /* nihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2476 return push_inst(compiler, 0xc00b00000000 /* nilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2480 FAIL_IF(push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2481 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2486 return push_inst(compiler, 0xc00c00000000 /* oihf */ | R36A(dst_r) | (imm >> 32)); in sljit_emit_bitwise_imm()
2488 return push_inst(compiler, 0xc00d00000000 /* oilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2492 FAIL_IF(push_inst(compiler, 0xa5080000 /* oihh */ | R20A(dst_r) | (imm >> 48))); in sljit_emit_bitwise_imm()
2494 FAIL_IF(push_inst(compiler, 0xa5090000 /* oihl */ | R20A(dst_r) | ((imm >> 32) & 0xffff))); in sljit_emit_bitwise_imm()
2496 FAIL_IF(push_inst(compiler, 0xa50a0000 /* oilh */ | R20A(dst_r) | ((imm >> 16) & 0xffff))); in sljit_emit_bitwise_imm()
2498 return push_inst(compiler, 0xa50b0000 /* oill */ | R20A(dst_r) | (imm & 0xffff)); in sljit_emit_bitwise_imm()
2503 FAIL_IF(push_inst(compiler, 0xc00600000000 /* xihf */ | R36A(dst_r) | (imm >> 32))); in sljit_emit_bitwise_imm()
2505 return push_inst(compiler, 0xc00700000000 /* xilf */ | R36A(dst_r) | (imm & 0xffffffff)); in sljit_emit_bitwise_imm()
2600 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_shift() local
2620 if ((op & SLJIT_32) && dst_r == src_r) { in sljit_emit_shift()
2628 FAIL_IF(push_inst(compiler, ins | R20A(dst_r) | R12A(base_r) | imm)); in sljit_emit_shift()
2638 FAIL_IF(push_inst(compiler, ins | R36A(dst_r) | R32A(src_r) | R28A(base_r) | (imm << 16))); in sljit_emit_shift()
2642 return push_inst(compiler, (op & SLJIT_32) ? or(dst_r, dst_r) : ogr(dst_r, dst_r)); in sljit_emit_shift()
2856 sljit_ins dst_r = FAST_IS_REG(dst) ? gpr(dst) : tmp0; in sljit_emit_fop1_conv_sw_from_f64() local
2870 FAIL_IF(push_inst(compiler, ins | R4A(dst_r) | F0(src))); 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()
2882 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1_conv_f64_from_sw() local
2899 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | R0(src))); in sljit_emit_fop1_conv_f64_from_sw()
2933 sljit_s32 dst_r; in sljit_emit_fop1() local
2940 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG1; in sljit_emit_fop1()
2943 …FAIL_IF(emit_float(compiler, 0xb3040000 /* ldebr */, 0xed0000000004 /* ldeb */, dst_r, src, srcw)); in sljit_emit_fop1()
2946 …m(compiler, FLOAT_LOAD | (op == SLJIT_CONV_F32_FROM_F64 ? 0 : (op & SLJIT_32)), dst_r, src, srcw)); in sljit_emit_fop1()
2947 src = dst_r; in sljit_emit_fop1()
2973 FAIL_IF(push_inst(compiler, ins | F4(dst_r) | F0(src))); in sljit_emit_fop1()
2979 SLJIT_ASSERT(dst_r == TMP_FREG1); in sljit_emit_fop1()
2984 #define FLOAT_MOV(op, dst_r, src_r) \ argument
2985 (((op & SLJIT_32) ? 0x3800 /* ler */ : 0x2800 /* ldr */) | F4(dst_r) | F0(src_r))
2992 sljit_s32 dst_r = TMP_FREG1; in sljit_emit_fop2() local
3003 dst_r = dst; in sljit_emit_fop2()
3022 FAIL_IF(float_mem(compiler, FLOAT_LOAD | (op & SLJIT_32), dst_r, src1, src1w)); in sljit_emit_fop2()
3024 FAIL_IF(push_inst(compiler, FLOAT_MOV(op, dst_r, src1))); in sljit_emit_fop2()
3047 FAIL_IF(emit_float(compiler, ins_r, ins, dst_r, src2, src2w)); in sljit_emit_fop2()
3052 SLJIT_ASSERT(dst_r != TMP_FREG1); in sljit_emit_fop2()
3201 sljit_gpr dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_op_flags() local
3211 FAIL_IF(load_word(compiler, dst_r, dst, dstw, op & SLJIT_32)); in sljit_emit_op_flags()
3219 loc_r = dst_r; in sljit_emit_op_flags()
3239 #define LEVAL(i) i(dst_r, loc_r) in sljit_emit_op_flags()
3257 return store_word(compiler, dst_r, dst, dstw, (op & SLJIT_32)); in sljit_emit_op_flags()
3267 sljit_gpr dst_r = gpr(dst_reg & ~SLJIT_32); in sljit_emit_cmov() local
3278 #define LEVAL(i) i(dst_r, src_r, mask) in sljit_emit_cmov()
3306 sljit_gpr dst_r; in sljit_emit_const() local
3317 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_const()
3319 PTR_FAIL_IF(push_inst(compiler, sljit_ins_const | lgrl(dst_r, 0))); in sljit_emit_const()
3322 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_const()
3326 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0 /* always 64-bit */)); in sljit_emit_const()
3353 sljit_gpr dst_r; in sljit_emit_put_label() local
3363 dst_r = FAST_IS_REG(dst) ? gpr(dst & REG_MASK) : tmp0; in sljit_emit_put_label()
3366 PTR_FAIL_IF(push_inst(compiler, lgrl(dst_r, 0))); in sljit_emit_put_label()
3369 PTR_FAIL_IF(push_inst(compiler, lg(dst_r, 0, r0, tmp1))); in sljit_emit_put_label()
3373 PTR_FAIL_IF(store_word(compiler, dst_r, dst, dstw, 0)); in sljit_emit_put_label()