[LLVMdev] The creation of Neon Instruction
Hanbing Li
hanbing.li at inria.fr
Thu Jul 24 06:42:43 PDT 2014
Dear all,
I am trying to study the Loop Vectorization. Neon supports the vectorization, so I want to get the neon instructions.
I tried to use the following command:
clang -fomit-frame-pointer -ggdb -emit-llvm hello.c -c -arch arm -o hello.bc
opt -mem2reg -loop-rotate -loop-simplify -lcssa -loop-vectorize -force-vector-width=8 hello.bc -o new.bc
llc new . bc -march=arm -mattr=+neon -relocation-model=static -o new.s
But I didn't get the neon instructions like "vadd, vmul" in the new.s. Is there anything wrong with the command?
(clang3.4 on Mac OS X 10.9)
Looking forward to your answers.
Thank you!
Hanbing LI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140724/913d89d8/attachment.html>
More information about the llvm-dev
mailing list