Update as_width() method for registers as there may be several choices
How to choose as_width when there are several candidates of the same size.
For instance with reg = V0.B[0]
there are several candidates for reg.as_width(32)
, namely: V0.S[0]
, S0
, Z0.S[0]
, V.4B[0]
, ...
It makes no sense to select a single register unless we know for which context we should use the new given register.
I suppose we could have as_width returning a set of possible registers instead, and depending upon the context the user has to select one of them.
Edited by Christophe Guillon