<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - target-cpu=kryo incomplete machine model"
href="https://bugs.llvm.org/show_bug.cgi?id=33512">33512</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>target-cpu=kryo incomplete machine model
</td>
</tr>
<tr>
<th>Product</th>
<td>libraries
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>Backend: AArch64
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>eugeni.stepanov@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr></table>
<p>
<div>
<pre>$ 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 {
entry:
%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]]</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>