Lines Matching refs:reg_map
69 static SLJIT_CONST sljit_ub reg_map[SLJIT_NUMBER_OF_REGISTERS + 3] = { variable
92 static SLJIT_CONST sljit_ub reg_map[SLJIT_NUMBER_OF_REGISTERS + 5] = { variable
101 static SLJIT_CONST sljit_ub reg_map[SLJIT_NUMBER_OF_REGISTERS + 5] = { variable
678 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov()
685 … return emit_do_imm32(compiler, (reg_map[dst] >= 8) ? REX_B : 0, MOV_r_i32 + reg_lmap[dst], srcw); in emit_mov()
755 reg_map[SLJIT_R0] == 0 in sljit_emit_op0()
756 && reg_map[SLJIT_R1] == 2 in sljit_emit_op0()
757 && reg_map[TMP_REG1] > 7, in sljit_emit_op0()
761 reg_map[SLJIT_R0] == 0 in sljit_emit_op0()
762 && reg_map[SLJIT_R1] < 7 in sljit_emit_op0()
763 && reg_map[TMP_REG1] == 2, in sljit_emit_op0()
813 *inst = MOD_REG | ((op >= SLJIT_UDIVMOD) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
834 *inst = MOD_REG | reg_map[SLJIT_R1]; in sljit_emit_op0()
894 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov_byte()
912 if (reg_map[src] >= 4) { in emit_mov_byte()
922 else if (FAST_IS_REG(src) && reg_map[src] >= 4) { in emit_mov_byte()
925 if (reg_map[dst] < 4) { in emit_mov_byte()
983 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
996 ENCODE_PREFIX(XCHG_EAX_r + reg_map[TMP_REG1]); in emit_mov_byte()
1036 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov_half()
1223 *inst++ = MOD_REG | (reg_map[dst_r] << 3) | reg_map[TMP_REG1]; in emit_clz()
1231 *inst++ = REX_W | (reg_map[dst_r] >= 8 ? REX_R : 0) | (reg_map[TMP_REG1] >= 8 ? REX_B : 0); in emit_clz()
2231 return reg_map[reg];
2697 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2701 *inst++ = REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B);
2713 *inst++ = (reg_map[reg] <= 7) ? REX : REX_B;
2717 *inst++ = REX_W | (reg_map[reg] <= 7 ? 0 : (REX_B | REX_R));
2736 if (reg_map[dst] <= 4) {
2744 *inst++ = MOD_REG | reg_map[dst];
2748 *inst = MOD_REG | (reg_map[dst] << 3) | reg_map[dst];
2768 *inst++ = MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1];
2775 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2783 *inst++ = MOD_REG | (reg_map[dst] << 3) | 0 /* eax */;
2784 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2788 …if (GET_OPCODE(op) == SLJIT_OR && !GET_ALL_FLAGS(op) && FAST_IS_REG(dst) && dst == src && reg_map[…
2789 SLJIT_COMPILE_ASSERT(reg_map[SLJIT_R0] == 0, scratch_reg1_must_be_eax);
2795 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2800 *inst++ = MOD_REG | (0 /* eax */ << 3) | reg_map[dst];
2801 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2809 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2816 *inst++ = MOD_REG | (1 /* ecx */ << 3) | reg_map[TMP_REG1];
2825 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2835 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];