This is the mail archive of the gcc@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: will multi-register returns get fixed?


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


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