deps/dr/x86/decode.c
/* Caller must check for rex.{r,b} extensions before calling this routine */
Caller must check for rex.{r,b} extensions before calling this routine
Caller must check for rex . { r b } extensions before calling this routine
static reg_id_t
reg8_alternative(decode_info_t *di, reg_id_t reg, uint prefixes)
{
    if (X64_MODE(di) && reg >= REG_START_x86_8 && reg <= REG_STOP_x86_8 &&
        TESTANY(PREFIX_REX_ALL, prefixes)) {
        return (reg - REG_START_x86_8 + REG_START_x64_8);
    }
    return reg;
}
static reg_id_t reg8_alternative ( decode_info_t * di , reg_id_t reg , uint prefixes ) { if ( X64_MODE ( di ) && reg >= REG_START_x86_8 && reg <= REG_STOP_x86_8 && TESTANY ( PREFIX_REX_ALL , prefixes ) ) { return ( reg - REG_START_x86_8 + REG_START_x64_8 ) ; } return reg ; }
Caller must check for rex.
Caller must check for rex .
/* for x64, if any rex prefix exists, we use SPL...SDL instead of
         * AH..BH (this seems to be the only use of 0x40 == PREFIX_REX_GENERAL)
         */