This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Re: PowerPC : GCC2 optimises better than GCC4???
On Thu, Jan 07, 2010 at 09:48:53AM +0100, Gabriel Paubert wrote:
> > apparently rs6000_emit_set_long_const needs work.
> > lis 3,0x8034
> > extsw 3,3
> > or
> > li 3,0x401a
> > sldi 3,3,17
> > etc. do IMHO the same.
>
> Huh? I don't think so:
>
> - first one loads 0xffff_ffff_8034_0000 in r3, and the extsw looks redundant
I meant lis 3,0x8034; rldicl 3,3,0,32 for the first case, sorry for mixing
sign extension with zero extension.
Jakub