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]
Other format: [Raw text]

Re: powerpc patch 1 of 9


On Sun, Feb 24, 2002 at 08:59:05AM -0800, Geoff Keating wrote:
> > 
> > Happens when SImode constants are sign extended in various places.
> 
> Can you provide a patch to fix those places?

No.  I should have explained in a little more detail.  Now that
constants are always sign extended, it would be wrong to remove the
sign extension in "those places" just to suit rs6000.  eg. 0xf0000000
is a value that might appear as 'andop' to includes_lshift_p, but the
canonical representation for this value in an SImode expression (on a
64 bit host) is 0xfffffffff0000000.  Initial RTL has constants in
this form, and the canonicalization will also happen during assorted
RTL simplifications when trunc_int_for_mode is called.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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