[llvm-bugs] [Bug 50750] New: AArch64 inline asm does not recognise Q registers in clobber list
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 17 04:38:26 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=50750
Bug ID: 50750
Summary: AArch64 inline asm does not recognise Q registers in
clobber list
Product: libraries
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: AArch64
Assignee: unassignedbugs at nondot.org
Reporter: david.spickett at linaro.org
CC: arnaud.degrandmaison at arm.com,
llvm-bugs at lists.llvm.org, smithp352 at googlemail.com,
Ties.Stuij at arm.com
Compiling the following for AArch64:
void foo(void) {
__asm __volatile("" : : : "v0");
__asm __volatile("" : : : "q0");
}
Produces this error:
<source>:3:31: error: unknown register name 'q0' in asm
__asm __volatile("" : : : "q0");
^
The same example does not error with GCC.
https://godbolt.org/z/zMdqP9qdo
Using "v0" instead works and has the same effect but we should recognise the
other naming schemes.
https://developer.arm.com/documentation/den0024/a/ARMv8-Registers/NEON-and-floating-point-registers/Scalar-register-sizes
Clang does not recognise "h", "b" or "q" where GCC does.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210617/47a14ae6/attachment.html>
More information about the llvm-bugs
mailing list