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: subreg fixing (extract_bit_field or simplify_subreg)


Aldy Hernandez wrote:

> The RTL is invalid because you can't have a SI subreg of a DF value.

Why do you think so?

The only general restriction I'm aware of is that you cannot switch
between different floating point modes using subreg.  Interpreting a
floating point mode as integer mode using subreg is OK.

There are additional restrictions for hard registers; a subreg
is only OK if it can be expressed as a single machine register.
These restrictions do not apply to pseudos, however.  It would
be the task of reload to ensure subregs of pseudos are lowered
correctly into valid hard registers and/or subregs.

Bye,
Ulrich

-- 
  Dr. Ulrich Weigand
  weigand@informatik.uni-erlangen.de


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