This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: actually sign-extending CONST_INTs in expand_binop


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]