<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 - AMDGPU: llvm-mc cannot parse the llc output"
href="https://bugs.llvm.org/show_bug.cgi?id=33579">33579</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>AMDGPU: llvm-mc cannot parse the llc output
</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>MC
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rafael.espindola@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, Matthew.Arsenault@amd.com, tstellar@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>Given
define amdgpu_kernel void @long_backward_sbranch() {
bb:
br label %bb2
bb2:
%loop.idx = phi i32 [ 0, %bb ], [ %inc, %bb2 ]
call void asm sideeffect
"v_nop_e64
v_nop_e64
v_nop_e64", ""() #0
%inc = add nsw i32 %loop.idx, 1 ; add cost 4
%cmp = icmp slt i32 %inc, 10 ; condition cost = 8
br i1 %cmp, label %bb2, label %bb3 ; -
bb3:
ret void
}
llc -march=amdgcn -verify-machineinstrs -amdgpu-s-branch-bits=4
produces a .s file with
s_sub_u32 vcc_lo, vcc_lo, (BB0_3+4)-BB0_1
which fails to parse:
test.s:33:28: error: not a valid operand.
s_sub_u32 vcc_lo, vcc_lo, (BB0_3+4)-BB0_1</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>