[Bug bootstrap/61320] [4.10 regression] ICE in jcf-parse.c:1622 (parse_class_file

ebotcazou at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 3 19:27:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61320

--- Comment #16 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> unsigned int foo (unsigned short *x)
> {
>   return x[0] << 16 | x[1];
> }
> 
> [...]
> gets you
> 
> foo:
>         lduh    [%o0], %g1
>         lduh    [%o0+2], %o0
>         sll     %g1, 16, %g1
>         jmp     %o7+8
>          or     %o0, %g1, %o0
> 
> which looks perfect to me.

Indeed, but after having gone through a perfectly useless transformation and
wasted cycles.  This reminds me of the ipa-split + inlining round trip.

Really SPARC machines aren't fast enough to allow such a silliness...



More information about the Gcc-bugs mailing list