This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC, LRA] Incorrect subreg resolution?


"H.J. Lu" <hjl.tools@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]