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

            Bug ID: 45225
           Summary: clang rGaf64948e2a05 fails to build the arm64 Linux
                    kernel
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangb...@nondot.org
          Reporter: samitolva...@google.com
                CC: cameron.mcina...@nyu.edu, diana.pi...@linaro.org,
                    efrie...@quicinc.com, graham.hun...@arm.com,
                    htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    ndesaulni...@google.com, neeil...@live.com,
                    rengo...@gmail.com, richard-l...@metafoo.co.uk,
                    sander.desma...@arm.com

Starting with commit af64948e2a050d1ef3b7fd314ed07b2a2fe402a5
("[SVE][Inline-Asm] Add constraints for SVE ACLE types"), the ToT arm64 Linux
kernel fails to build due to an error in inline assembly:

In file included from kernel/sched/core.c:9:
In file included from kernel/sched/sched.h:5:
In file included from ./include/linux/sched.h:14:
In file included from ./include/linux/pid.h:5:
In file included from ./include/linux/rculist.h:11:
In file included from ./include/linux/rcupdate.h:30:
./arch/arm64/include/asm/processor.h:280:15: error: invalid operand for inline
asm constraint 'p'
        asm volatile("prfm pldl1keep, %a0\n" : : "p" (ptr));
                     ^

This can be reproduced by checking out the latest kernel tree and building the
arm64 defconfig with CC=clang. Reverting the commit from clang fixes the issue.

-- 
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