Lines Matching refs:TMP_REG1
67 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
83 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
660 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
707 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
710 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
752 && reg_map[TMP_REG1] > 7, in sljit_emit_op0()
758 && reg_map[TMP_REG1] == 2, in sljit_emit_op0()
767 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
770 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in sljit_emit_op0()
778 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
807 *inst = MOD_REG | ((op >= SLJIT_UDIV) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
823 *inst = MOD_REG | ((op >= SLJIT_UDIV) ? reg_lmap[TMP_REG1] : reg_lmap[SLJIT_R1]); in sljit_emit_op0()
846 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
896 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
901 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
902 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
953 if (dst_r == TMP_REG1) { in emit_mov_byte()
971 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
984 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1038 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1065 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1066 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1088 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1089 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1093 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_unary()
1104 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_not_with_flags()
1105 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_not_with_flags()
1109 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in emit_not_with_flags()
1125 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_not_with_flags()
1126 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_not_with_flags()
1130 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in emit_not_with_flags()
1133 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_not_with_flags()
1147 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_clz()
1148 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_clz()
1153 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_IMM, 31, TMP_REG1, 0); in emit_clz()
1155 …uction(compiler, 1 | EX86_SHIFT_INS, SLJIT_IMM, !(op_flags & SLJIT_INT_OP) ? 63 : 31, TMP_REG1, 0); in emit_clz()
1163 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcw); in emit_clz()
1164 src = TMP_REG1; in emit_clz()
1168 inst = emit_x86_instruction(compiler, 2, TMP_REG1, 0, src, srcw); in emit_clz()
1198 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz()
1211 *inst++ = MOD_REG | (reg_map[dst_r] << 3) | reg_map[TMP_REG1]; in emit_clz()
1219 *inst++ = REX_W | (reg_map[dst_r] >= 8 ? REX_R : 0) | (reg_map[TMP_REG1] >= 8 ? REX_B : 0); in emit_clz()
1221 *inst++ = MOD_REG | (reg_lmap[dst_r] << 3) | reg_lmap[TMP_REG1]; in emit_clz()
1340 dst = TMP_REG1; in sljit_emit_op1()
1376 if (SLJIT_UNLIKELY(dst_is_ereg) && dst == TMP_REG1) in sljit_emit_op1()
1377 return emit_mov(compiler, SLJIT_MEM1(SLJIT_SP), dstw, TMP_REG1, 0); in sljit_emit_op1()
1454 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1456 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1459 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1491 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1492 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1524 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1525 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1546 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1548 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1551 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1555 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1570 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1572 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1575 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1606 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1607 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1628 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1630 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1633 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1637 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1651 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1759 dst_r = TMP_REG1;
1767 if (dst_r == TMP_REG1)
1768 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1789 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1825 if (dst_r == TMP_REG1)
1826 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
1868 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1869 src1 = TMP_REG1;
1875 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1876 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1963 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1967 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
1973 inst = emit_x86_instruction(compiler, 1, TMP_REG2, 0, TMP_REG1, 0);
1978 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
1984 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2007 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2008 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2014 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2015 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2018 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2029 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2030 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2033 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2038 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2040 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2043 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2048 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2053 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2058 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2066 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2074 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2316 sljit_si dst_r = SLOW_IS_REG(dst) ? dst : TMP_REG1;
2329 if (dst_r == TMP_REG1 && dst != SLJIT_UNUSED)
2330 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2351 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw);
2352 src = TMP_REG1;
2599 EMIT_MOV(compiler, TMP_REG1, 0, src, 0);
2600 src = TMP_REG1;
2608 EMIT_MOV(compiler, TMP_REG1, 0, src, 0);
2609 src = TMP_REG1;
2682 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2685 *inst++ = MOD_REG | reg_lmap[TMP_REG1];
2686 *inst++ = REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B);
2688 *inst++ = MOD_REG | (reg_lmap[TMP_REG1] << 3) | reg_lmap[dst];
2692 reg = (op == SLJIT_MOV && FAST_IS_REG(dst)) ? dst : TMP_REG1;
2707 if (reg != TMP_REG1)
2712 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2717 return sljit_emit_op2(compiler, op, dst, dstw, dst, dstw, TMP_REG1, 0);
2741 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1);
2752 *inst++ = MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1];
2759 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2768 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2779 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2785 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2793 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2800 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2809 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2819 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2822 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2827 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2847 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, offset));
2849 …SLJIT_ASSERT(emit_lea_binary(compiler, SLJIT_KEEP_FLAGS, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0) != S…
2852 return emit_lea_binary(compiler, SLJIT_KEEP_FLAGS, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0);
2882 reg = SLOW_IS_REG(dst) ? dst : TMP_REG1;
2888 dst = TMP_REG1;
2902 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))