Lines Matching refs:dst_r

1493 	sljit_s32 dst_r;  in emit_mov_byte()  local
1516 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
1521 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
1524 dst_r = src; in emit_mov_byte()
1526 dst_r = src; in emit_mov_byte()
1548 FAIL_IF(emit_groupf(compiler, sign ? MOVSX_r_rm8 : MOVZX_r_rm8, dst_r, src, srcw)); in emit_mov_byte()
1552 inst = emit_x86_instruction(compiler, 1 | EX86_REX | EX86_NO_REXW, dst_r, 0, dst, dstw); in emit_mov_byte()
1589 sljit_s32 dst_r; in emit_mov_half() local
1612 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1615 dst_r = src; in emit_mov_half()
1617 FAIL_IF(emit_groupf(compiler, sign ? MOVSX_r_rm16 : MOVZX_r_rm16, dst_r, src, srcw)); in emit_mov_half()
1620 inst = emit_x86_instruction(compiler, 1 | EX86_NO_REXW | EX86_PREF_66, dst_r, 0, dst, dstw); in emit_mov_half()
1671 sljit_s32 dst_r; in emit_clz_ctz() local
1676 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_clz_ctz()
1679 …FAIL_IF(emit_groupf(compiler, (is_clz ? LZCNT_r_rm : TZCNT_r_rm) | EX86_PREF_F3, dst_r, src, srcw)… in emit_clz_ctz()
1686 FAIL_IF(emit_groupf(compiler, is_clz ? BSR_r_rm : BSF_r_rm, dst_r, src, srcw)); in emit_clz_ctz()
1692 if (dst_r != TMP_REG1) { in emit_clz_ctz()
1694 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz_ctz()
1697 …inst = emit_x86_instruction(compiler, 2, dst_r, 0, SLJIT_MEM0(), is_clz ? (sljit_sw)&emit_clz_arg … in emit_clz_ctz()
1704 FAIL_IF(emit_cmov_generic(compiler, SLJIT_EQUAL, dst_r, SLJIT_IMM, max)); in emit_clz_ctz()
1707 inst = emit_x86_instruction(compiler, 1 | EX86_BIN_INS, SLJIT_IMM, 31, dst_r, 0); in emit_clz_ctz()
1719 FAIL_IF(emit_groupf(compiler, CMOVE_r_rm, dst_r, TMP_REG2, 0)); in emit_clz_ctz()
1721 FAIL_IF(emit_cmov_generic(compiler, SLJIT_EQUAL, dst_r, SLJIT_IMM, max)); in emit_clz_ctz()
1724 inst = emit_x86_instruction(compiler, 1 | EX86_BIN_INS, SLJIT_IMM, max >> 1, dst_r, 0); in emit_clz_ctz()
1741 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_bswap() local
1756 if (src != dst_r) { in emit_bswap()
1759 FAIL_IF(emit_mov_half(compiler, 0, dst_r, 0, src, srcw)); in emit_bswap()
1761 EMIT_MOV(compiler, dst_r, 0, src, srcw); in emit_bswap()
1769 if (reg_map[dst_r] >= 8) in emit_bswap()
1785 inst[1] = BSWAP_r | reg_lmap[dst_r]; in emit_bswap()
1788 inst[1] = BSWAP_r | reg_map[dst_r]; in emit_bswap()
1798 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_IMM, (sljit_sw)size, dst_r, 0); in emit_bswap()
2160 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; local
2163 if (dst_r == src1 && src2 != SLJIT_IMM) {
2164 FAIL_IF(emit_groupf(compiler, IMUL_r_rm, dst_r, src2, src2w));
2165 } else if (dst_r == src2 && src1 != SLJIT_IMM) {
2166 FAIL_IF(emit_groupf(compiler, IMUL_r_rm, dst_r, src1, src1w));
2169 EMIT_MOV(compiler, dst_r, 0, SLJIT_IMM, src2w);
2170 src2 = dst_r;
2175 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
2183 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
2193 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
2202 if (dst_r != src2)
2203 EMIT_MOV(compiler, dst_r, 0, src2, src2w);
2205 FAIL_IF(emit_groupf(compiler, IMUL_r_rm, dst_r, TMP_REG2, 0));
2213 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
2221 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
2232 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
2241 if (dst_r != src1)
2242 EMIT_MOV(compiler, dst_r, 0, src1, src1w);
2244 FAIL_IF(emit_groupf(compiler, IMUL_r_rm, dst_r, TMP_REG2, 0));
2249 if (ADDRESSING_DEPENDS_ON(src2, dst_r))
2250 dst_r = TMP_REG1;
2251 EMIT_MOV(compiler, dst_r, 0, src1, src1w);
2252 FAIL_IF(emit_groupf(compiler, IMUL_r_rm, dst_r, src2, src2w));
2267 sljit_s32 dst_r, done = 0; local
2275 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2279 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM2(src1, src2), 0);
2286 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src1), (sljit_s32)src2w);
2289 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src1), src2w);
2299 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src2), (sljit_s32)src1w);
2302 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src2), src1w);
2311 if (dst_r == TMP_REG1)
3108 sljit_s32 dst_r; local
3111 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
3118 …FAIL_IF(emit_groupf(compiler, CVTTSD2SI_r_xm | EX86_SELECT_F2_F3(op) | EX86_SSE2_OP2, dst_r, src, …
3129 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG; local
3148 …FAIL_IF(emit_groupf(compiler, CVTSI2SD_x_rm | EX86_SELECT_F2_F3(op) | EX86_SSE2_OP1, dst_r, src, s…
3153 if (dst_r == TMP_FREG)
3199 sljit_s32 dst_r; local
3219 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG;
3230 …groupf(compiler, CVTPD2PS_x_xm | ((op & SLJIT_32) ? EX86_PREF_66 : 0) | EX86_SSE2, dst_r, src, 0));
3231 if (dst_r == TMP_FREG)
3237 dst_r = (dst == src) ? TMP_FREG : dst;
3242 FAIL_IF(emit_groupf(compiler, PCMPEQD_x_xm | EX86_PREF_66 | EX86_SSE2, dst_r, dst_r, 0));
3244 inst = emit_x86_instruction(compiler, 2 | EX86_PREF_66 | EX86_SSE2_OP2, 0, 0, dst_r, 0);
3257 if (dst_r != TMP_FREG)
3258 dst_r = (src & SLJIT_MEM) ? TMP_FREG : src;
3259 …(compiler, (GET_OPCODE(op) == SLJIT_NEG_F64 ? XORPD_x_xm : ANDPD_x_xm) | EX86_SSE2, dst, dst_r, 0);
3282 sljit_s32 dst_r; local
3295 dst_r = dst;
3303 FAIL_IF(emit_sse2_load(compiler, op & SLJIT_32, dst_r, src1, src1w));
3305 dst_r = TMP_FREG;
3309 dst_r = TMP_FREG;
3315 …FAIL_IF(emit_groupf(compiler, ADDSD_x_xm | EX86_SELECT_F2_F3(op) | EX86_SSE2, dst_r, src2, src2w));
3319 …FAIL_IF(emit_groupf(compiler, SUBSD_x_xm | EX86_SELECT_F2_F3(op) | EX86_SSE2, dst_r, src2, src2w));
3323 …FAIL_IF(emit_groupf(compiler, MULSD_x_xm | EX86_SELECT_F2_F3(op) | EX86_SSE2, dst_r, src2, src2w));
3327 …FAIL_IF(emit_groupf(compiler, DIVSD_x_xm | EX86_SELECT_F2_F3(op) | EX86_SSE2, dst_r, src2, src2w));
3331 if (dst_r != dst)
4584 sljit_s32 dst_r; local
4620 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
4624 FAIL_IF(emit_vex_instruction(compiler, op, dst_r, 0, freg, 0));
4626 FAIL_IF(emit_groupf(compiler, op, dst_r, freg, 0));
4633 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_IMM, 8, dst_r, 0);
4638 if (dst_r == TMP_REG1)
4650 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
4656 FAIL_IF(emit_groupf(compiler, PMOVMSKB_r_x | EX86_PREF_66 | EX86_SSE2_OP2, dst_r, TMP_FREG, 0));
4665 FAIL_IF(emit_vex_instruction(compiler, op, dst_r, 0, freg, 0));
4668 if (dst_r == TMP_REG1) {