[RFC] nonzero_bits (was Re: Another Java sparc-sun-solaris2.8 bootstrap failure)

Richard Henderson rth@redhat.com
Wed Mar 27 15:54:00 GMT 2002


On Wed, Mar 27, 2002 at 06:29:05PM -0500, Jakub Jelinek wrote:
> mode is surely fits in HOST_BITS_PER_WIDE_INT (early in nonzero_bits):

Ah, right.

> Replace the above line with
> if (GET_MODE_CLASS (mode) == MODE_INT
>     && GET_MODE_BITSIZE (mode) <= HOST_BITS_PER_WIDE_INT)

Ok.

> The thing I'm not sure about is if there is:
> (subreg/u:QI (reg:SI ))
> and nonzero_bits_mode is DI, whether this sais anything about the upper 32
> bits (ie. if it shouldn't be &= 0xffffffff000000ff instead of 0xff above).

You're not changing behaviour.  MODE has always been the 
mode of the subreg, which is always been masking out the
high bits, whether there were 32 or 64 of them.


r~



More information about the Gcc mailing list