Lines Matching refs:TMP_REG1
64 #define TMP_REG1 (SLJIT_NUMBER_OF_REGISTERS + 2) macro
1073 FAIL_IF(emit_load_imm64(compiler, FAST_IS_REG(arg) ? TMP_REG2 : TMP_REG1, immw)); \
1074 inst = emit_x86_instruction(compiler, 1, FAST_IS_REG(arg) ? TMP_REG2 : TMP_REG1, 0, arg, argw); \
1228 FAIL_IF(emit_rdssp(compiler, TMP_REG1)); in adjust_shadow_stack()
1231 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_MEM1(TMP_REG1), 0); in adjust_shadow_stack()
1234 FAIL_IF(emit_cmp_binary (compiler, TMP_REG1, 0, src, srcw)); in adjust_shadow_stack()
1250 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, 1); in adjust_shadow_stack()
1253 FAIL_IF(emit_incssp(compiler, TMP_REG1)); in adjust_shadow_stack()
1307 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw)); in emit_mov()
1308 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
1328 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src, srcw); in emit_mov()
1331 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw); in emit_mov()
1384 && reg_map[TMP_REG1] > 7); in sljit_emit_op0()
1389 && reg_map[TMP_REG1] == 2); in sljit_emit_op0()
1398 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
1401 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, TMP_REG1, 0); in sljit_emit_op0()
1409 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_R1, 0); in sljit_emit_op0()
1431 inst[1] = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
1447 inst[1] = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_lmap[TMP_REG1] : reg_lmap[SLJIT_R1]); in sljit_emit_op0()
1473 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1476 EMIT_MOV(compiler, SLJIT_R1, 0, TMP_REG1, 0); in sljit_emit_op0()
1516 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_byte()
1521 SLJIT_ASSERT(dst_r == TMP_REG1); in emit_mov_byte()
1522 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
1541 EMIT_MOV(compiler, TMP_REG1, 0, src, 0); in emit_mov_byte()
1542 src = TMP_REG1; in emit_mov_byte()
1612 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_mov_half()
1652 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw); in emit_unary()
1653 inst = emit_x86_instruction(compiler, 1, 0, 0, TMP_REG1, 0); in emit_unary()
1657 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_unary()
1676 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_clz_ctz()
1682 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_clz_ctz()
1692 if (dst_r != TMP_REG1) { in emit_clz_ctz()
1693 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, max); in emit_clz_ctz()
1694 inst = emit_x86_instruction(compiler, 2, dst_r, 0, TMP_REG1, 0); in emit_clz_ctz()
1731 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0); in emit_clz_ctz()
1741 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1; in emit_bswap()
1812 return emit_mov_half(compiler, 0, dst, dstw, TMP_REG1, 0); in emit_bswap()
1814 return emit_mov(compiler, dst, dstw, TMP_REG1, 0); in emit_bswap()
1907 dst = TMP_REG1; in sljit_emit_op1()
1949 if (SLJIT_UNLIKELY(dst_is_ereg) && dst == TMP_REG1) in sljit_emit_op1()
1950 return emit_mov(compiler, SLJIT_MEM1(SLJIT_SP), dstw, TMP_REG1, 0); in sljit_emit_op1()
2011 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
2012 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
2044 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2045 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
2066 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2068 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
2071 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2075 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2117 EMIT_MOV(compiler, TMP_REG1, 0, src2, src2w);
2118 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst, dstw);
2139 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2141 BINARY_IMM(op_imm, op_mr, src2w, TMP_REG1, 0);
2144 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2148 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2160 sljit_s32 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2250 dst_r = TMP_REG1;
2256 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2275 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
2311 if (dst_r == TMP_REG1)
2312 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2354 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2355 src1 = TMP_REG1;
2361 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2362 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2401 FAIL_IF(emit_load_imm64(compiler, FAST_IS_REG(src1) ? TMP_REG2 : TMP_REG1, src2w));
2402 … inst = emit_x86_instruction(compiler, 1, FAST_IS_REG(src1) ? TMP_REG2 : TMP_REG1, 0, src1, src1w);
2430 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, src1w));
2431 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2450 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2454 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2460 inst = emit_x86_instruction(compiler, 1, TMP_REG2, 0, TMP_REG1, 0);
2465 inst = emit_x86_instruction(compiler, 1, SLJIT_IMM, src2w, TMP_REG1, 0);
2471 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, src2, src2w);
2497 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2498 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2501 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2512 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2513 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, src2, src2w, TMP_REG1, 0);
2516 EMIT_MOV(compiler, dst, dstw, TMP_REG1, 0);
2521 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2523 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2526 return emit_mov(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2529 if (FAST_IS_REG(dst) && dst != src2 && dst != TMP_REG1 && !ADDRESSING_DEPENDS_ON(src2, dst)) {
2536 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2547 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2556 EMIT_MOV(compiler, TMP_REG1, 0, src1, src1w);
2567 inst = emit_x86_instruction(compiler, 1 | EX86_SHIFT_INS, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2579 if (dst != TMP_REG1)
2580 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
2720 return sljit_emit_op2(compiler, op, TMP_REG1, 0, src1, src1w, src2, src2w);
2760 FAIL_IF(emit_mul(compiler, TMP_REG1, 0, src1, src1w, src2, src2w));
2761 inst = emit_x86_instruction(compiler, 1, TMP_REG1, 0, dst_reg, dstw);
2820 EMIT_MOV(compiler, TMP_REG1, 0, src2_reg, src2w);
2821 src2_reg = TMP_REG1;
2827 EMIT_MOV(compiler, TMP_REG1, 0, src1_reg, src1w);
2828 src1_reg = TMP_REG1;
2831 if (src2_reg != TMP_REG1) {
2832 EMIT_MOV(compiler, TMP_REG1, 0, src1_reg, src1w);
2833 src1_reg = TMP_REG1;
2854 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2858 src2_reg = TMP_REG1;
2874 if (src2_reg != TMP_REG1) {
2875 EMIT_MOV(compiler, TMP_REG1, 0, src1_reg, src1w);
2876 src1_reg = TMP_REG1;
2902 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2906 if (src1_reg != TMP_REG1 && src2_reg != TMP_REG1) {
2907 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_PREF_SHIFT_REG, 0);
2940 EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, TMP_REG1, 0);
2949 …EMIT_MOV(compiler, SLJIT_PREF_SHIFT_REG, 0, restore_ecx == 1 ? TMP_REG1 : SLJIT_MEM1(SLJIT_SP), 0);
3111 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
3121 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
3143 EMIT_MOV(compiler, TMP_REG1, 0, src, srcw);
3144 src = TMP_REG1;
3489 inst[0] = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
3492 inst[3] = MOD_REG | reg_lmap[TMP_REG1];
3493 inst[4] = U8(REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B));
3495 inst[6] = U8(MOD_REG | (reg_lmap[TMP_REG1] << 3) | reg_lmap[dst]);
3499 reg = (GET_OPCODE(op) < SLJIT_ADD && FAST_IS_REG(dst)) ? dst : TMP_REG1;
3515 if (reg != TMP_REG1)
3520 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
3524 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
3527 SLJIT_ASSERT(reg_map[TMP_REG1] < 4);
3554 inst[2] = U8(MOD_REG | reg_map[TMP_REG1]);
3557 inst[4] = U8(MOD_REG | (reg_map[TMP_REG1] << 3) | reg_map[dst]);
3567 inst[2] = U8(MOD_REG | reg_map[TMP_REG1]);
3571 inst[5] = U8(MOD_REG | (reg_map[TMP_REG1] << 3) | reg_map[TMP_REG1]);
3574 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
3577 return sljit_emit_op2(compiler, op, dst_save, dstw_save, dst_save, dstw_save, TMP_REG1, 0);
3830 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, srcw));
3833 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcw);
3835 src = TMP_REG1;
3978 srcdst = TMP_REG1;
3999 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcdstw);
4000 srcdst = TMP_REG1;
4157 EMIT_MOV(compiler, TMP_REG1, 0, SLJIT_IMM, srcdstw);
4158 srcdst = TMP_REG1;
4219 return emit_mov(compiler, srcdst_orig, srcdstw_orig, TMP_REG1, 0);
4259 return emit_mov(compiler, srcdst_orig, srcdstw_orig, TMP_REG1, 0);
4274 sljit_s32 opcode3 = TMP_REG1;
4620 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
4638 if (dst_r == TMP_REG1)
4639 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
4650 dst_r = FAST_IS_REG(dst) ? dst : TMP_REG1;
4668 if (dst_r == TMP_REG1) {
4672 return emit_mov(compiler, dst, dstw, TMP_REG1, 0);
4773 sljit_s32 free_reg = TMP_REG1;
4794 EMIT_MOV(compiler, TMP_REG1, 0, src_reg, srcw);
4795 src_reg = TMP_REG1;
4798 mem_reg = TMP_REG1;
4814 if (src_reg == TMP_REG1 && mem_reg == SLJIT_R0 && (free_reg & SLJIT_MEM)) {
4853 return emit_mov(compiler, SLJIT_R0, 0, TMP_REG1, 0);
4856 if (free_reg != TMP_REG1)
4857 …return emit_mov(compiler, free_reg, 0, (free_reg == SLJIT_R1) ? SLJIT_MEM1(SLJIT_SP) : TMP_REG1, 0…
4879 FAIL_IF(emit_load_imm64(compiler, TMP_REG1, offset));
4881 …SLJIT_ASSERT(emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0) != SLJIT_ERR_UNSUPPORT…
4884 return emit_lea_binary(compiler, dst, dstw, SLJIT_SP, 0, TMP_REG1, 0);
4914 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
4930 if (emit_mov(compiler, dst, dstw, TMP_REG1, 0))
4957 reg = FAST_IS_REG(dst) ? dst : TMP_REG1;
4975 PTR_FAIL_IF(emit_mov(compiler, dst, dstw, TMP_REG1, 0));