Home | History | Annotate | Download | only in sljit

Lines Matching refs:dst_r

902 	sljit_s32 dst_r;
931 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
936 SLJIT_ASSERT(dst_r == TMP_REG1);
939 dst_r = src;
941 dst_r = src;
980 inst = emit_x86_instruction(compiler, 2, dst_r, 0, src, srcw);
988 if (dst_r == TMP_REG1) {
1009 inst = emit_x86_instruction(compiler, 1, work_r, 0, dst_r, 0);
1022 inst = emit_x86_instruction(compiler, 1, work_r, 0, dst_r, 0);
1028 inst = emit_x86_instruction(compiler, 1, dst_r, 0, dst, dstw);
1033 inst = emit_x86_instruction(compiler, 1 | EX86_REX | EX86_NO_REXW, dst_r, 0, dst, dstw);
1047 sljit_s32 dst_r;
1073 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1076 dst_r = src;
1078 inst = emit_x86_instruction(compiler, 2, dst_r, 0, src, srcw);
1085 inst = emit_x86_instruction(compiler, 1 | EX86_NO_REXW | EX86_PREF_66, dst_r, 0, dst, dstw);
1177 sljit_s32 dst_r;
1210 dst_r = dst;
1214 dst_r = SLJIT_R0;
1216 dst_r = SLJIT_R1;
1218 dst_r = SLJIT_R2;
1219 EMIT_MOV(compiler, dst, dstw, dst_r, 0);
1221 EMIT_MOV(compiler, dst_r, 0, SLJIT_IMM, 32 + 31);
1223 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG2;
1225 EMIT_MOV(compiler, dst_r, 0, SLJIT_IMM, !(op_flags & SLJIT_I32_OP) ? 64 + 63 : 32 + 31);
1233 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0);
1246 *inst++ = MOD_REG | (reg_map[dst_r] << 3) | reg_map[TMP_REG1];
1254 *inst++ = REX_W | (reg_map[dst_r] >= 8 ? REX_R : 0) | (reg_map[TMP_REG1] >= 8 ? REX_B : 0);
1256 *inst++ = MOD_REG | (reg_lmap[dst_r] << 3) | reg_lmap[TMP_REG1];
1261 inst = emit_x86_instruction(compiler, 1 | EX86_BIN_INS, SLJIT_IMM, 31, dst_r, 0);
1263 inst = emit_x86_instruction(compiler, 1 | EX86_BIN_INS, SLJIT_IMM, !(op_flags & SLJIT_I32_OP) ? 63 : 31, dst_r, 0);
1270 inst = emit_x86_instruction(compiler, 1, dst_r, 0, dst, dstw);
1684 sljit_s32 dst_r;
1686 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1689 if (dst_r == src1 && !(src2 & SLJIT_IMM)) {
1690 inst = emit_x86_instruction(compiler, 2, dst_r, 0, src2, src2w);
1695 else if (dst_r == src2 && !(src1 & SLJIT_IMM)) {
1696 inst = emit_x86_instruction(compiler, 2, dst_r, 0, src1, src1w);
1703 EMIT_MOV(compiler, dst_r, 0, SLJIT_IMM, src2w);
1704 src2 = dst_r;
1709 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
1719 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
1729 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src2, src2w);
1739 if (dst_r != src2)
1740 EMIT_MOV(compiler, dst_r, 0, src2, src2w);
1741 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG2, 0);
1752 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
1762 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
1772 inst = emit_x86_instruction(compiler, 1, dst_r, 0, src1, src1w);
1782 if (dst_r != src1)
1783 EMIT_MOV(compiler, dst_r, 0, src1, src1w);
1784 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG2, 0);
1793 if (ADDRESSING_DEPENDS_ON(src2, dst_r))
1794 dst_r = TMP_REG1;
1795 EMIT_MOV(compiler, dst_r, 0, src1, src1w);
1796 inst = emit_x86_instruction(compiler, 2, dst_r, 0, src2, src2w);
1802 if (dst_r == TMP_REG1)
1814 sljit_s32 dst_r, done = 0;
1824 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1828 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM2(src1, src2), 0);
1835 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src1), (sljit_s32)src2w);
1838 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src1), src2w);
1848 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src2), (sljit_s32)src1w);
1851 inst = emit_x86_instruction(compiler, 1, dst_r, 0, SLJIT_MEM1(src2), src1w);
1860 if (dst_r == TMP_REG1)
2352 sljit_s32 dst_r = SLOW_IS_REG(dst) ? dst : TMP_REG1;
2360 inst = emit_x86_instruction(compiler, 2 | ((op & SLJIT_F32_OP) ? EX86_PREF_F3 : EX86_PREF_F2) | EX86_SSE2_OP2, dst_r, 0, src, srcw);
2365 if (dst_r == TMP_REG1 && dst != SLJIT_UNUSED)
2374 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG;
2392 inst = emit_x86_instruction(compiler, 2 | ((op & SLJIT_F32_OP) ? EX86_PREF_F3 : EX86_PREF_F2) | EX86_SSE2_OP1, dst_r, 0, src, srcw);
2400 if (dst_r == TMP_FREG)
2421 sljit_s32 dst_r;
2440 dst_r = FAST_IS_REG(dst) ? dst : TMP_FREG;
2452 FAIL_IF(emit_sse2_logic(compiler, CVTPD2PS_x_xm, op & SLJIT_F32_OP, dst_r, src, 0));
2453 if (dst_r == TMP_FREG)
2459 dst_r = dst;
2461 FAIL_IF(emit_sse2_load(compiler, op & SLJIT_F32_OP, dst_r, src, srcw));
2464 dst_r = TMP_FREG;
2465 FAIL_IF(emit_sse2_load(compiler, op & SLJIT_F32_OP, dst_r, src, srcw));
2470 FAIL_IF(emit_sse2_logic(compiler, XORPD_x_xm, 1, dst_r, SLJIT_MEM0(), (sljit_sw)(op & SLJIT_F32_OP ? sse2_buffer : sse2_buffer + 8)));
2474 FAIL_IF(emit_sse2_logic(compiler, ANDPD_x_xm, 1, dst_r, SLJIT_MEM0(), (sljit_sw)(op & SLJIT_F32_OP ? sse2_buffer + 4 : sse2_buffer + 12)));
2478 if (dst_r == TMP_FREG)
2488 sljit_s32 dst_r;
2501 dst_r = dst;
2510 FAIL_IF(emit_sse2_load(compiler, op & SLJIT_F32_OP, dst_r, src1, src1w));
2512 dst_r = TMP_FREG;
2517 dst_r = TMP_FREG;
2523 FAIL_IF(emit_sse2(compiler, ADDSD_x_xm, op & SLJIT_F32_OP, dst_r, src2, src2w));
2527 FAIL_IF(emit_sse2(compiler, SUBSD_x_xm, op & SLJIT_F32_OP, dst_r, src2, src2w));
2531 FAIL_IF(emit_sse2(compiler, MULSD_x_xm, op & SLJIT_F32_OP, dst_r, src2, src2w));
2535 FAIL_IF(emit_sse2(compiler, DIVSD_x_xm, op & SLJIT_F32_OP, dst_r, src2, src2w));
2539 if (dst_r == TMP_FREG)