<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Dear all,</div><div><br></div><div>I am trying to study the Loop Vectorization. Neon supports the vectorization, so I want to get the neon instructions.</div><div><div>I tried to use the following command:</div><div><p style="margin: 0px; font-size: 11px; font-family: Menlo;" data-mce-style="margin: 0px; font-size: 11px; font-family: Menlo;"><span>clang -fomit-frame-pointer -ggdb -emit-llvm hello.c -c -arch arm -o hello.bc</span></p><p style="margin: 0px; font-size: 11px; font-family: Menlo; color: #008400;" data-mce-style="margin: 0px; font-size: 11px; font-family: Menlo; color: #008400;"><span style="color: #000000;" data-mce-style="color: #000000;">opt -mem2reg -loop-rotate -loop-simplify -lcssa -loop-vectorize -force-vector-width=8 hello.bc -o new.bc</span></p><p style="margin: 0px; font-size: 11px; font-family: Menlo;" data-mce-style="margin: 0px; font-size: 11px; font-family: Menlo;">llc new<span style="color: #272ad8;" data-mce-style="color: #272ad8;">.</span>bc -march=arm -mattr=+neon -relocation-model=static -o new.s</p></div></div><div>But I didn't get the neon instructions like "vadd, vmul" in the new.s. Is there anything wrong with the command?</div><div>(clang3.4 on Mac OS X 10.9)</div><div><br></div><div>Looking forward to your answers.</div><div><br></div><div>Thank you!</div><div><br></div><div>Hanbing LI</div><div><br></div><div><br></div><div><p style="margin: 0px; font-size: 11px; font-family: Menlo;" data-mce-style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></p><p style="margin: 0px; font-size: 11px; font-family: Menlo;" data-mce-style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></p></div></div></body></html>