This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PING] Re: SUBREGs and objects with holes
>>>>> Rask Ingemann Lambertsen writes:
Rask> The only interface a target offers to get all the required information is
Rask> HARD_REGNO_NREGS(). For example, when you have HARD_REGNO_NREGS (reg,
Rask> SImode) return 1 and HARD_REGNO_NREGS (reg, DFmode) also return 1, it tells
Rask> you that you can't represent subreg_regno_offset (reg, DFmode, 4, SImode).
Actually, HARD_REGNO_NREGS and CANNOT_CHANGE_MODE_CLASS.
CANNOT_CHANGE_MODE_CLASS provides information about whether the mode has
individually addressible internal units.
David