------- Comment #3 from ian at airs dot com  2006-02-16 01:58 -------
Just a note.  My implementation of RTH's subreg lowering pass gives me this at
-O3:

f:
        pushl   %ebp
        movl    w, %eax
        movl    %esp, %ebp
        movl    w+4, %edx
        popl    %ebp
#APP
        bswapl %eax ; bswapl %edx
#NO_APP
        movl    %edx, w
        movl    %eax, w+4
        ret

With -momit-leaf-frame-pointer I get this:

f:
        movl    w, %eax
        movl    w+4, %edx
#APP
        bswapl %eax ; bswapl %edx
#NO_APP
        movl    %edx, w
        movl    %eax, w+4
        ret

which I suspect is optimal.


-- 

ian at airs dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ian at airs dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21202

Reply via email to