NEON Instructions Not Supported
Error Information
error: unknown register name 'q0' in asm
: "memory", "cc", "q0"
^
Problem
Clang does not allow NEON instructions to use Q registers.
Code Example
$ cat bar.c
int foo(void) {
__asm__("":::"q0");
return 0;
}
$ clang bar.c
bar.c:2:16: error: unknown register name 'q0' in asm
__asm__("":::"q0");
^
1 error generated.
Solution
Change the qX register to the vX register.
Parent topic: Clang Compatibility Problems