How do we access higher order bits of a register?

Ian Lance Taylor iant@google.com
Tue Nov 22 17:06:00 GMT 2011


Ayonam Ray <ayonam@gmail.com> writes:

> I wanted to write an RTL that would access the higher order bits of a
> register.  I saw that high:<mode> works only with constants or labels.
>  The subreg:<mode> only takes the lower order bits.  Can't find any
> way to address the higher order bits.  Any help would be appreciated.

If it is a single hard register, use a shift.

Ian



More information about the Gcc-help mailing list