This is the mail archive of the gcc-bugs@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]

[Bug rtl-optimization/15792] missed subreg optimization


------- Additional Comments From dann at godzilla dot ics dot uci dot edu  2004-08-20 18:47 -------
(In reply to comment #1)
> Indeed. In test1, we get a completely bogus sequence: 
> 	movl	12(%ebp), %edx 
> 	movl	8(%ebp), %eax 
> 	movl	%edx, %ecx 
> 	orl	%eax, %ecx 
> What is the compiler thinking, moving data first into adx just to move 
> it further into ecx the next moment? 

This is a regression from gcc-3.0, the mov is not generated there:

        movl    16(%esp), %eax
        movl    20(%esp), %edx
        orl     %edx, %eax



-- 


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


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