[llvm-dev] Clang 5.0 support for armv8 64 bit with neon and auto vectorization
Tim Northover via llvm-dev
llvm-dev at lists.llvm.org
Fri Feb 3 07:01:52 PST 2017
On 3 February 2017 at 00:48, Haider Zeeshan (CC/ESM1) via llvm-dev
<llvm-dev at lists.llvm.org> wrote:
> clang.exe -target armv8 -fslp-vectorize-aggressive -mfpu=neon
> -mfloat-abi=hard -c test.cpp
Peter's advice is good (-mfpu and -mfloat-abi aren't needed). But also
note that "-target armv8" actually targets 32-bit ARM (v8 CPUs usually
support both modes).
You probably want to specify a full triple for the target, maybe
"-target aarch64-linux-gnu", otherwise the OS part might default to
Windows since that's where you're running. Clang doesnn't support
Windows on AArch64.
More information about the llvm-dev