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]

Re: SUBREG questions


> The mismatch is this:  It's documented that stores into SUBREG's with a
> smaller mode, leave the other bits in undefined state:
>   "Storing in a non-paradoxical `subreg' has undefined results for
>      bits belonging to the same word as the `subreg'."  (from docu of
                      ^^^^^^^^^^^^^^^^

It's no mismatch.  Bits belonging to other words remain unchanged.

              
>   subreg RTL pattern), and
>   "Likewise, if
>      LVAL is a `subreg' whose machine mode is narrower than the mode of
>      the register, the rest of the register can be changed in an
>      undefined way."  (from docu to (set LVAL X) RTL pattern)

This is not formulated exactly enough.  This is only meant to apply to
extend to a word for pseudos, for a single hard register for hard registers.


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