Lines Matching refs:reg_map
73 static const sljit_u8 reg_map[SLJIT_NUMBER_OF_REGISTERS + 3] = { variable
98 static const sljit_u8 reg_map[SLJIT_NUMBER_OF_REGISTERS + 4] = { variable
107 static const sljit_u8 reg_map[SLJIT_NUMBER_OF_REGISTERS + 4] = { variable
695 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov()
702 … return emit_do_imm32(compiler, (reg_map[dst] >= 8) ? REX_B : 0, MOV_r_i32 + reg_lmap[dst], srcw); in emit_mov()
771 reg_map[SLJIT_R0] == 0 in sljit_emit_op0()
772 && reg_map[SLJIT_R1] == 2 in sljit_emit_op0()
773 && reg_map[TMP_REG1] > 7); in sljit_emit_op0()
776 reg_map[SLJIT_R0] == 0 in sljit_emit_op0()
777 && reg_map[SLJIT_R1] < 7 in sljit_emit_op0()
778 && reg_map[TMP_REG1] == 2); in sljit_emit_op0()
827 *inst = MOD_REG | ((op >= SLJIT_DIVMOD_UW) ? reg_map[TMP_REG1] : reg_map[SLJIT_R1]); in sljit_emit_op0()
848 *inst = MOD_REG | reg_map[SLJIT_R1]; in sljit_emit_op0()
905 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov_byte()
923 if (reg_map[src] >= 4) { in emit_mov_byte()
933 else if (FAST_IS_REG(src) && reg_map[src] >= 4) { in emit_mov_byte()
936 if (reg_map[dst] < 4) { 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()
1068 return emit_do_imm(compiler, MOV_r_i32 + reg_map[dst], srcw); in emit_mov_half()
2163 return reg_map[reg];
2574 *inst++ = (reg_map[TMP_REG1] <= 7) ? REX : REX_B;
2578 *inst++ = REX | (reg_map[TMP_REG1] <= 7 ? 0 : REX_R) | (reg_map[dst] <= 7 ? 0 : REX_B);
2590 *inst++ = (reg_map[reg] <= 7) ? REX : REX_B;
2594 *inst++ = REX_W | (reg_map[reg] <= 7 ? 0 : (REX_B | REX_R));
2617 if (reg_map[dst] <= 4) {
2625 *inst++ = MOD_REG | reg_map[dst];
2629 *inst = MOD_REG | (reg_map[dst] << 3) | reg_map[dst];
2649 *inst++ = MOD_REG | (reg_map[dst] << 3) | reg_map[TMP_REG1];
2656 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2664 *inst++ = MOD_REG | (reg_map[dst] << 3) | 0 /* eax */;
2665 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2669 if (GET_OPCODE(op) == SLJIT_OR && !GET_ALL_FLAGS(op) && FAST_IS_REG(dst) && reg_map[dst] <= 4) {
2670 SLJIT_ASSERT(reg_map[SLJIT_R0] == 0);
2677 *inst++ = XCHG_EAX_r + reg_map[TMP_REG1];
2682 *inst++ = MOD_REG | (0 /* eax */ << 3) | reg_map[dst];
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];