Thanks Robin. > Ah, as one source == destination in ternary ops and the destination > always has a different EEW in widening ops, we must not overlap at all.
Yes, will take care of pred_widen_abd_plus soon. Pan -----Original Message----- From: Robin Dapp <[email protected]> Sent: Wednesday, October 28, 2026 4:59 PM To: Li, Pan2 <[email protected]>; [email protected] Cc: [email protected]; [email protected]; [email protected]; [email protected]; Chen, Ken <[email protected]>; Liu, Hongtao <[email protected]> Subject: Re: [PATCH v1 0/7] Disable reg group overlap for rvv widen tenary ops > From: Pan Li <[email protected]> > > According to the spec and confirmation from below issue. The different > source eew rule will apply for all rvv widen tenary ops. Aka the vd > will be treated as source as well, and then the vd reg group cannot > be re-used(include overlap in highest part) in other source when diff > EEW. > > Therefore, disable the overlap for those insns. > > "A vector register cannot be used to provide source operands with more > than one EEW for a single instruction. A mask register source is > considered to have EEW=1 for this constraint. An encoding that would > result in the same vector register being read with two or more different > EEWs, including when the vector register appears at different positions > within two or more vector register groups, is reserved." Ah, as one source == destination in ternary ops and the destination always has a different EEW in widening ops, we must not overlap at all. LGTM. -- Regards Robin
