[LLVMbugs] [Bug 17795] Loops with xors aren't vectorized

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Nov 4 01:49:08 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=17795

Benjamin Kramer <benny.kra at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |benny.kra at gmail.com
         Resolution|---                         |WORKSFORME

--- Comment #1 from Benjamin Kramer <benny.kra at gmail.com> ---
Apple's clang is just outdated.

$ clang -O3 -S t.c
$ clang --version
clang version 3.4 (193960)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ cat t.s
        .file   "t.c"
        .section        .rodata.cst16,"aM", at progbits,16
        .align  16
.LCPI0_0:
        .zero   16,54
        .text
        .globl  f
        .align  16, 0x90
        .type   f, at function
f:                                      # @f
        .cfi_startproc
# BB#0:                                 # %entry
        xorl    %eax, %eax
        movaps  .LCPI0_0(%rip), %xmm0
        .align  16, 0x90
.LBB0_1:                                # %vector.body
                                        # =>This Inner Loop Header: Depth=1
        movups  (%rdi,%rax), %xmm1
        movups  16(%rdi,%rax), %xmm2
        xorps   %xmm0, %xmm1
        xorps   %xmm0, %xmm2
        movups  %xmm1, (%rsi,%rax)
        movups  %xmm2, 16(%rsi,%rax)
        addq    $32, %rax
        cmpq    $128, %rax
        jne     .LBB0_1
# BB#2:                                 # %for.end
        ret
.Ltmp0:
        .size   f, .Ltmp0-f
        .cfi_endproc


        .ident  "clang version 3.4 (193960)"
        .section        ".note.GNU-stack","", at progbits

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131104/d2848c09/attachment.html>


More information about the llvm-bugs mailing list