<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 - [DAG][AMDGPU] Canonicalization of mulh constants to rhs causes verifier errors"
href="https://bugs.llvm.org/show_bug.cgi?id=51217">51217</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[DAG][AMDGPU] Canonicalization of mulh constants to rhs causes verifier errors
</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>Windows NT
</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: AMDGPU
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>llvm-dev@redking.me.uk
</td>
</tr>
<tr>
<th>CC</th>
<td>craig.topper@gmail.com, jay.foad@antixlabs.com, jay.foad@gmail.com, llvm-bugs@lists.llvm.org, Matthew.Arsenault@amd.com, stanislav.mekhanoshin@amd.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=25070" name="attach_25070" title="Canonicalise MULHS/U constants to the RHS">attachment 25070</a> <a href="attachment.cgi?id=25070&action=edit" title="Canonicalise MULHS/U constants to the RHS">[details]</a></span>
Canonicalise MULHS/U constants to the RHS
As detailed on D106471, attempting to canonicalize mulh constants to rhs
causes:
*** Bad machine code: VOP* instruction violates constant bus restriction ***
- function: v_test_sdiv_k_num_i64
- basic block: %bb.0 (0x238f3f455f0)
- instruction: %160:vgpr_32 = V_ADDC_U32_e32 %70:sreg_32, %161:vgpr_32,
implicit-def dead $vcc, implicit $vcc, implicit $exec
Failed Tests (4):
LLVM :: CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
LLVM :: CodeGen/AMDGPU/sdiv64.ll
LLVM :: CodeGen/AMDGPU/srem64.ll
LLVM :: CodeGen/AMDGPU/udiv64.ll
I only saw it on sdiv64.ll and srem64.ll (I'm not sure but this might require
EXPENSIVE_CHECKS to be enabled).</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>