Lines Matching refs:TMP_REG1
73 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
92 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
706 FAIL_IF(emit_load_imm64(compiler, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, immw)); \
707 … inst = emit_x86_instruction(compiler, 1, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, 0, arg, argw); \
836 FAIL_IF(emit_rdssp(compiler, TMP_REG1)); in adjust_shadow_stack()
840 SLJIT_ASSERT(reg_map[TMP_REG1] == 5); in adjust_shadow_stack()
850 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_MEM1(TMP_REG1), 0); in adjust_shadow_stack()
854 FAIL_IF(emit_cmp_binary (compiler, TMP_REG1, 0, src, srcw)); in adjust_shadow_stack()
870 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1); in adjust_shadow_stack()
873 FAIL_IF(emit_incssp(compiler, TMP_REG1)); in adjust_shadow_stack()
926 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw)); in emit_mov()
927 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
947 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
950 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
990 && reg_map[TMP_REG1] > 7); in sljit_emit_op0()
995 && reg_map[TMP_REG1] == 2); in sljit_emit_op0()
1004 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
1007 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in sljit_emit_op0()
1015 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
1044 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
1060 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_lmap[TMP_REG1] : reg_lmap[SLJIT_R1]); in sljit_emit_op0()
1086 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1089 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1140 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
1145 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
1146 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
1197 if (dst_r == TMP_REG1) { in emit_mov_byte()
1215 ENCODE_PREFIX(XCHG_EAX_r | reg_map[TMP_REG1]); in emit_mov_byte()
1228 ENCODE_PREFIX(XCHG_EAX_r | reg_map[TMP_REG1]); in emit_mov_byte()
1303 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1347 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1348 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1352 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_unary()
1374 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_not_with_flags()
1375 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_not_with_flags()
1379 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in emit_not_with_flags()
1382 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_not_with_flags()
1402 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_clz()
1411 if (dst_r != TMP_REG1) { in emit_clz()
1412 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 32 + 31); in emit_clz()
1413 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz()
1445 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_clz()
1526 dst = TMP_REG1; in sljit_emit_op1()
1568 if (SLJIT_UNLIKELY(dst_is_ereg) && dst == TMP_REG1) in sljit_emit_op1()
1569 return emit_mov(compiler, SLJIT_MEM1(SLJIT_SP), dstw, TMP_REG1, 0); in sljit_emit_op1()
1624 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1625 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1657 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1658 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1679 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1681 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1684 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1688 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1730 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1731 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1752 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1754 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1757 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1761 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1773 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1881 dst_r = TMP_REG1;
1890 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1909 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1945 if (dst_r == TMP_REG1)
1946 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
1988 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1989 src1 = TMP_REG1;
1995 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1996 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2036 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src2w));
2037 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src1, src1w);
2065 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src1w));
2066 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2085 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2089 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2095 inst = emit_x86_instruction(compiler, 1, TMP_REG2, 0, TMP_REG1, 0);
2100 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2106 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2129 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2130 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2133 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2144 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2145 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2148 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2153 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2155 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2158 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2160 else if (FAST_IS_REG(dst) && dst != src2 && dst != TMP_REG1 && !ADDRESSING_DEPENDS_ON(src2, dst)) {
2163 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2168 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2173 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2177 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2184 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2189 if (dst != TMP_REG1)
2190 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2249 SLJIT_ASSERT(dst != TMP_REG1 || HAS_FLAGS(op));
2319 return sljit_emit_op2(compiler, op, TMP_REG1, 0, src1, src1w, src2, src2w);
2462 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2476 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2497 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw);
2498 src = TMP_REG1;
2782 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2785 *inst++ = MOD_REG | reg_lmap[TMP_REG1];
2786 *inst++ = U8(REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B));
2788 *inst++ = U8(MOD_REG | (reg_lmap[TMP_REG1] << 3) | reg_lmap[dst]);
2792 reg = (GET_OPCODE(op) < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG1;
2808 if (reg != TMP_REG1)
2813 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2820 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2846 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1);
2857 *inst++ = U8(MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1]);
2864 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2873 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2885 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2891 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2899 *inst++ = U8(MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1]);
2906 *inst++ = U8(MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1]);
2915 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2925 *inst++ = U8(XCHG_EAX_r | reg_map[TMP_REG1]);
2928 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2934 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2966 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcw);
2967 src = TMP_REG1;
2994 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, offset));
2996 …SLJIT_ASSERT(emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0) != SLJIT_ERR_UNSUPPORT…
2999 return emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0);
3029 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
3046 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))
3074 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
3086 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))