def _performAdditionalVerification(self, aInstr, aInstrRecord):
    vd_val = aInstrRecord['Dests']['vd']
    vs1_val = aInstrRecord['Srcs'].get('vs1')
    vs2_val = aInstrRecord['Srcs']['vs2']
    if aInstr.startswith('VW'):
        if (vs1_val and (vd_val == (vs1_val & 31))):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
        if (('.W' not in aInstr) and (vd_val == (vs2_val & 31))):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
    elif aInstr.startswith('VN'):
        if ((vd_val & 31) == vs2_val):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
    else:
        self.error(('Unexpected instruction %s' % aInstr))
def _performAdditionalVerification(self, aInstr, aInstrRecord):
    vd_val = aInstrRecord['Dests']['vd']
    vs1_val = aInstrRecord['Srcs'].get('vs1')
    vs2_val = aInstrRecord['Srcs']['vs2']
    if aInstr.startswith('VW'):
        if (vs1_val and (vd_val == (vs1_val & 31))):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
        if (('.W' not in aInstr) and (vd_val == (vs2_val & 31))):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
    elif aInstr.startswith('VN'):
        if ((vd_val & 31) == vs2_val):
            self.error(('Instruction %s used overlapping source and destination registers of different formats' % aInstr))
    else:
        self.error(('Unexpected instruction %s' % aInstr))