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/43766] New: x86 prefetch doesn't use complex memory addressing


Source:
void p(int *a, int i)
{
    __builtin_prefetch(&a[i]);
}

> gcc -O3 -fomit-frame-pointer -S prefetch.c
_p:
        movslq  %esi, %rsi
        leaq    (%rdi,%rsi,4), %rax
        prefetcht0      (%rax)
        ret

leaq and prefetch should be merged.


-- 
           Summary: x86 prefetch doesn't use complex memory addressing
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: astrange at ithinksw dot com


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


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