This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] nonzero_bits (was Re: Another Java sparc-sun-solaris2.8 bootstrap failure)
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~