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
810 FAIL_IF(emit_rdssp(compiler, TMP_REG1)); in adjust_shadow_stack()
814 SLJIT_ASSERT(reg_map[TMP_REG1] == 5); in adjust_shadow_stack()
824 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_MEM1(TMP_REG1), 0); in adjust_shadow_stack()
834 FAIL_IF(emit_cmp_binary (compiler, TMP_REG1, 0, src, srcw)); in adjust_shadow_stack()
850 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1); in adjust_shadow_stack()
853 FAIL_IF(emit_incssp(compiler, TMP_REG1)); in adjust_shadow_stack()
910 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw)); in emit_mov()
911 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
931 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
934 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
974 && reg_map[TMP_REG1] > 7); in sljit_emit_op0()
979 && reg_map[TMP_REG1] == 2); in sljit_emit_op0()
988 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
991 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in sljit_emit_op0()
999 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
1028 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
1044 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_lmap[TMP_REG1] : reg_lmap[SLJIT_R1]); in sljit_emit_op0()
1070 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1073 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1124 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
1129 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
1130 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
1181 if (dst_r == TMP_REG1) { in emit_mov_byte()
1199 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1212 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1287 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1323 dst = TMP_REG1; in emit_unary()
1334 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1335 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1339 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_unary()
1350 dst = TMP_REG1; in emit_not_with_flags()
1364 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_not_with_flags()
1365 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_not_with_flags()
1369 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in emit_not_with_flags()
1372 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_not_with_flags()
1392 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_clz()
1401 if (dst_r != TMP_REG1) { in emit_clz()
1402 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 32 + 31); in emit_clz()
1403 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz()
1435 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_clz()
1516 dst = TMP_REG1; in sljit_emit_op1()
1552 if (SLJIT_UNLIKELY(dst_is_ereg) && dst == TMP_REG1) in sljit_emit_op1()
1553 return emit_mov(compiler, SLJIT_MEM1(SLJIT_SP), dstw, TMP_REG1, 0); in sljit_emit_op1()
1583 FAIL_IF(emit_load_imm64(compiler, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, immw)); \
1584 inst = emit_x86_instruction(compiler, 1, (arg == TMP_REG1) ? TMP_REG2 : TMP_REG1, 0, arg, argw); \
1617 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1619 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1622 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1654 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1655 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1687 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1688 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1709 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1711 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1714 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1718 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1737 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1739 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1742 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1773 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
1774 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
1795 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
1797 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
1800 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
1804 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1818 dst_r = SLOW_IS_REG(dst) ? dst : TMP_REG1;
1926 dst_r = TMP_REG1;
1935 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
1954 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
1990 if (dst_r == TMP_REG1)
1991 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2033 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2034 src1 = TMP_REG1;
2040 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2041 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2081 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src2w));
2082 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src1, src1w);
2110 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src1w));
2111 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2130 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2134 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2140 inst = emit_x86_instruction(compiler, 1, TMP_REG2, 0, TMP_REG1, 0);
2145 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2151 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2174 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2175 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2181 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2182 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2185 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2196 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2197 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2200 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2205 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2207 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2210 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2215 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2220 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2225 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2229 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2236 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2242 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2279 return emit_cmp_binary(compiler, (dst == SLJIT_UNUSED) ? TMP_REG1 : dst, dstw, SLJIT_IMM, 0);
2484 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2498 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2519 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw);
2520 src = TMP_REG1;
2804 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2807 *inst++ = MOD_REG | reg_lmap[TMP_REG1];
2808 *inst++ = REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B);
2810 *inst++ = MOD_REG | (reg_lmap[TMP_REG1] << 3) | reg_lmap[dst];
2814 reg = (GET_OPCODE(op) < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG1;
2830 if (reg != TMP_REG1)
2835 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2842 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2868 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1);
2879 *inst++ = MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1];
2886 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2895 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2907 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2913 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2921 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2928 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2937 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2947 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2950 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2956 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
2988 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcw);
2989 src = TMP_REG1;
3016 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, offset));
3018 …SLJIT_ASSERT(emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0) != SLJIT_ERR_UNSUPPORT…
3021 return emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0);
3051 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
3068 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))
3096 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
3108 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))