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 target/26290] [4.1 Regression]: code pessimization wrt. GCC 4.0 probably due to TARGET_MEM_REF



------- Comment #17 from opruz at centrum dot cz  2007-04-19 17:29 -------
4.1.2 -m32 -O2

.L6:
        movl    8(%ebp), %ebx
        movl    4(%edx), %ecx
        movl    -4(%ebx,%eax,4), %ebx
        movl    %ecx, -20(%ebp)
        cmpl    %ecx, %ebx
        movl    %ebx, -16(%ebp)
        jle     .L7
        movl    8(%ebp), %ebx
        movl    %ecx, -4(%ebx,%eax,4)
        movl    -16(%ebp), %ecx
        movl    %ecx, 4(%edx)
.L7:
        incl    -24(%ebp)
        addl    $4, %edx
        cmpl    -24(%ebp), %esi
        jle     .L12
        jmp     .L6

4.1.2 -m32 -O2

.L6:
        movl    -4(%rdx), %r10d
        movl    (%rcx), %r8d
        cmpl    %r8d, %r10d
        jle     .L7
        movl    %r8d, -4(%rdx)
        movl    %r10d, (%rcx)
.L7:
        incl    %edi
        addq    $4, %rcx
        cmpl    %edi, %esi
        jle     .L4
        jmp     .L6

Looks like noone gives a shit though...


-- 


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


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