This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: actually sign-extending CONST_INTs in expand_binop
- To: Joern Rennecke <amylaar at redhat dot com>
- Subject: Re: actually sign-extending CONST_INTs in expand_binop
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 24 Apr 2001 11:13:47 -0300
- Cc: amylaar at cambridge dot redhat dot com (Joern Rennecke), gcc-patches at gcc dot gnu dot org
- Organization: GCC Team, Red Hat
- References: <200104241358.f3ODwRj25376@phal.cambridge.redhat.com>
On Apr 24, 2001, Joern Rennecke <amylaar@redhat.com> wrote:
>> Ok, I see what you're getting at. But I don't think your patch is
>> correct. It will indeed do the narrowing conversion from SImode to
>> HImode you need in this case, but it won't do a widening conversion
>> that may be needed in certain cases.
> What binary integer operator performs a narrowing conversion?
I seem to recall having got at some of these with divisions. Perhaps
not. I no longer remember for sure. Anyway, using the widest mode
shouldn't hurt in any case I can think of.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me