"H.J. Lu" <hjl.to...@gmail.com> writes:
> How about this patch
>
> http://gcc.gnu.org/git/?p=gcc.git;a=patch;h=23023006b946e06b6fd93786585f2f8cd4837956
>
> I tested it on Linux/x86-64 without any regressions.

I don't think we should key this off vectorness.  It's a question of
whether the class contains a register for which the given subreg parameters
are valid.  E.g. on some targets the FP registers are wider than the general
registers.  And on some targets (e.g. NEON) you can use pairs of vector
registers, in which case there are two valid offsets for each "to" mode.

Target-independent code could figure this out from the information
it already has.  I don't think new hooks should be needed.

Thanks,
Richard

Reply via email to