> I suppose the question isn't so much "is this a tuple mode?" but more > "does this vector occupy multiple registers?". REGMODE_NATURAL_SIZE > seems like the right thing to test for that. The problem is that both > AArch64 and RISC-V only define REGMODE_NATURAL_SIZE in the natural way > for variable-length vectors: > > /* ??? For now, only do this for variable-width SVE registers. > Doing it for constant-sized registers breaks lower-subreg.cc. */ > > So I suppose we'd need to fix that first (which would be a good thing, > but a bit of tangent).
This has bitten me several times already but I never bothered to investigate. Agreed that it would be a good thing to fix. I'll have a look (but not right away). > Then related_vector_mode could be used to get the associated vector mode. -- Regards Robin
