I wrote an ARM NEON function in an individual file csc_rotation.S to do the colorspace conversion and I added the pure assembly file into a iOS app project to test it, and then compile the code under armv7 arch on Xcode.
Then I got these error:
.text
csc_rotation.S:3:1: Cannot use dot operator on a type
ldr r4, [sp, #24] //Save width to r4
csc_rotation.S:20:1: Unknown type name 'ldr'
csc_rotation.S:20:15: Expected identifier
csc_rotation.S:20:19: Expected ';' after top level declarator
image_rotate_180D_neon(y_ptr, y_stride, x_ptr, x_stride, width, height);
i420_888.cpp:536:5: Use of undeclared identifier 'image_rotate_180D_neon'
It seems LLVM can't compile the neon assembly code? Could you help me?