This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: regression for 3.1: bad sign extension?
- From: Geoff Keating <geoffk at geoffk dot org>
- To: Bob Wilson <bwilson at tensilica dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: 14 Mar 2002 00:37:08 -0800
- Subject: Re: regression for 3.1: bad sign extension?
- References: <3C8FEA15.116BCECD@tensilica.com>
Bob Wilson <bwilson@tensilica.com> writes:
> The problem occurs when there is an unsigned short (16-bits, HI mode)
> that gets (incorrectly?) sign-extended by this code.
There's no such thing as an 'unsigned short' in RTL. All HImode
values are the same, and there is only one way to write a HImode constant
of 0xffff: (const_int -1).
--
- Geoffrey Keating <geoffk@geoffk.org> <geoffk@redhat.com>