core/x86/instr.c
/* checks regs in dest base-disp but not dest reg */
checks regs in dest base-disp but not dest reg
checks regs in dest base - disp but not dest reg
bool
instr_reads_from_reg(instr_t *instr, reg_id_t reg)
{
    int i;
    opnd_t opnd;
    if (instr_reg_in_src(instr, reg))
        return true;
    for (i=0; i<instr_num_dsts(instr); i++) {
        opnd = instr_get_dst(instr, i);
        if (!opnd_is_reg(opnd) && opnd_uses_reg(opnd, reg))
            return true;
    }
    return false;
}
bool instr_reads_from_reg ( instr_t * instr , reg_id_t reg ) { int i ; opnd_t opnd ; if ( instr_reg_in_src ( instr , reg ) ) return true ; for ( i = 0 ; i < instr_num_dsts ( instr ) ; i ++ ) { opnd = instr_get_dst ( instr , i ) ; if ( ! opnd_is_reg ( opnd ) && opnd_uses_reg ( opnd , reg ) ) return true ; } return false ; }
checks regs in dest base-disp but not dest reg
checks regs in dest base - disp but not dest reg