https://bugs.llvm.org/show_bug.cgi?id=41402

            Bug ID: 41402
           Summary: aarch64 doesn't allow pointer to static struct for "i"
                    constrain of inline assembly
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Frontend
          Assignee: unassignedclangb...@nondot.org
          Reporter: ndesaulni...@google.com
                CC: isanb...@gmail.com, jykni...@google.com,
                    kristof.be...@arm.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk,
                    srhi...@google.com
            Blocks: 4068

Created attachment 21741
  --> https://bugs.llvm.org/attachment.cgi?id=21741&action=edit
arm64_i.c

See attached test case.  It seems that x86_64 allows the input argument to an
extended inline asm block to be a pointer to a static struct, but aarch64 does
not.

This pattern is used in the Linux kernel (as part of the static_key runtime
patching) and without support blocks landing asm goto support


Referenced Bugs:

https://bugs.llvm.org/show_bug.cgi?id=4068
[Bug 4068] [Meta] Compiling the Linux kernel with clang
-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to