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: [email protected]
          Reporter: [email protected]
                CC: [email protected],
                    [email protected], [email protected],
                    [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to