will multi-register returns get fixed?

Jakub Jelinek jakub@redhat.com
Fri Jun 6 20:46:00 GMT 2003


On Fri, Jun 06, 2003 at 10:16:50PM +0200, Michael Matz wrote:
> Hi,
> 
> On Fri, 6 Jun 2003, David Mosberger wrote:
> 
> >                                                 platform
> >  compiler:                      x86                     ia64
> >  gcc                            atrocious code          atrocious code
> 
> What exactly is atrocious with that code:
> 
> foo:
>         movl    4(%esp), %ecx
>         xorl    %edx, %edx
>         testl   %ecx, %ecx
>         movl    $-13, %eax
>         jle     .L1
>         movl    %ecx, %eax
>         xorl    %edx, %edx
> .L1:
>         ret

Well, %edx doesn't have to be cleared for the second time.

	Jakub



More information about the Gcc mailing list