[llvm-bugs] [Bug 33512] New: target-cpu=kryo incomplete machine model

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Jun 19 10:11:44 PDT 2017


            Bug ID: 33512
           Summary: target-cpu=kryo incomplete machine model
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: AArch64
          Assignee: unassignedbugs at nondot.org
          Reporter: eugeni.stepanov at gmail.com
                CC: llvm-bugs at lists.llvm.org

$ cat 1.ii
struct __attribute__((__aligned__)) C {};
_Atomic C c;
void g() { __c11_atomic_load(&c, __ATOMIC_RELAXED); }

$ clang++ -c -mcpu=kryo -O1 -target aarch64-linux -std=c++14 1.ii

DefIdx 1 exceeds machine model writes for %vreg1<def>, %vreg2<def> = LDXPX
%vreg0; mem:Volatile LD16[getelementptr inbounds (%struct.C, %struct.C* @c, i32
0, i32 0, i32 0)] GPR64:%vreg1,%vreg2 GPR64common:%vreg0
 (Try with MCSchedModel.CompleteModel set to false)incomplete machine model
UNREACHABLE executed at /code/llvm/lib/CodeGen/TargetSchedule.cpp:249!

The same with IR:
$ cat 1.ll
target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"
target triple = "aarch64--linux"

%struct.C = type { [16 x i8] }

@c = local_unnamed_addr global %struct.C zeroinitializer, align 16

define void @g() #0 {
  %0 = load atomic i128, i128* bitcast (%struct.C* @c to i128*) monotonic,
align 16
  ret void

attributes #0 = { "target-cpu"="kryo" }

$ llc 1.ll
[[same error message]]

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/20170619/3270dae5/attachment.html>

More information about the llvm-bugs mailing list