Hi,
I am trying to compile a .cc file using clang 5.0 for ARM 64-bit that has some inline assembly. The inline assembly loads some value to ‘q0’. I am getting the error: 'unknown register name q0
'
I reproduced the issue with a simple file that only has the following:
int foo(void)
{
asm(“ldr q0, [x0]”:::“q0”);
return 0;
}
I am compiling it with: clang++ --target=aarch64-none-linux-android -c foo.cc
Note that if the same code is in an assembly file (e.g. foo.S) like the following: