https://llvm.org/bugs/show_bug.cgi?id=20072

Simon Pilgrim <llvm-...@redking.me.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |llvm-...@redking.me.uk
         Resolution|---                         |FIXED

--- Comment #4 from Simon Pilgrim <llvm-...@redking.me.uk> ---
X86 builtin feature flags were added in 3.8:


clang -c -march=athlon64

<source>:4:15: error: '__builtin_ia32_storeups256' needs target feature avx
void test() { __builtin_ia32_storeups256(0, a); }
^
1 error generated.
Compiler exited with result code 1



clang -c -march=athlon64 -mavx

test():                               # @test()
        pushq   %rbp
        movq    %rsp, %rbp
        vmovaps a(%rip), %ymm0
        vmovups %ymm0, 0
        popq    %rbp
        vzeroupper
        retq

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to