Lines Matching refs:TMP_REG1

71 #define TMP_REG1	(SLJIT_NUMBER_OF_REGISTERS + 2)  macro
90 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
709 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw)); in emit_mov()
710 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
730 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
733 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
773 && reg_map[TMP_REG1] > 7); in sljit_emit_op0()
778 && reg_map[TMP_REG1] == 2); in sljit_emit_op0()
787 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
790 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in sljit_emit_op0()
798 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
827 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
843 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_lmap[TMP_REG1] : reg_lmap[SLJIT_R1]); in sljit_emit_op0()
869 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
872 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
919 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
924 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
925 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
976 if (dst_r == TMP_REG1) { in emit_mov_byte()
994 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1007 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1082 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1118 dst = TMP_REG1; in emit_unary()
1129 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1130 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1134 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_unary()
1145 dst = TMP_REG1; in emit_not_with_flags()
1159 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_not_with_flags()
1160 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_not_with_flags()
1164 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in emit_not_with_flags()
1167 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_not_with_flags()
1187 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_clz()
1196 if (dst_r != TMP_REG1) { in emit_clz()
1197 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 32 + 31); in emit_clz()
1198 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz()
1230 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_clz()
1317 dst = TMP_REG1; in sljit_emit_op1()
1353 if (SLJIT_UNLIKELY(dst_is_ereg) && dst == TMP_REG1) in sljit_emit_op1()
1354 return emit_mov(compiler, SLJIT_MEM1(SLJIT_SP), dstw, TMP_REG1, 0); in sljit_emit_op1()
1384 FAIL_IF(emit_load_imm64(compiler, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, immw)); \
1385 inst = emit_x86_instruction(compiler, 1, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, 0, arg, argw); \
1418 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1420 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1423 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1455 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1456 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1488 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1489 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1510 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1512 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1515 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1519 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1538 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1540 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1543 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1574 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1575 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1596 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1598 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1601 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1605 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1619 dst_r = SLOW_IS_REG(dst) ? dst : TMP_REG1;
1727 dst_r = TMP_REG1;
1736 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1755 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1791 if (dst_r == TMP_REG1)
1792 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
1834 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1835 src1 = TMP_REG1;
1841 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1842 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1882 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src2w));
1883 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src1, src1w);
1911 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src1w));
1912 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1931 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1935 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
1941 inst = emit_x86_instruction(compiler, 1, TMP_REG2, 0, TMP_REG1, 0);
1946 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
1952 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1975 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1976 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
1982 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1983 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
1986 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
1997 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1998 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2001 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2006 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2008 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2011 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2016 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2021 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2026 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2030 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2037 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2043 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2080 return emit_cmp_binary(compiler, (dst == SLJIT_UNUSED) ? TMP_REG1 : dst, dstw, SLJIT_IMM, 0);
2254 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2268 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2289 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw);
2290 src = TMP_REG1;
2574 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2577 *inst++ = MOD_REG | reg_lmap[TMP_REG1];
2578 *inst++ = REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B);
2580 *inst++ = MOD_REG | (reg_lmap[TMP_REG1] << 3) | reg_lmap[dst];
2584 reg = (GET_OPCODE(op) < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG1;
2600 if (reg != TMP_REG1)
2605 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2612 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2638 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1);
2649 *inst++ = MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1];
2656 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2665 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2677 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2683 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2691 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2698 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2707 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2717 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2720 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2726 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2758 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcw);
2759 src = TMP_REG1;
2786 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, offset));
2788 …SLJIT_ASSERT(emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0) != SLJIT_ERR_UNSUPPORT…
2791 return emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0);
2821 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
2838 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))