<html>
<head>
<base href="https://llvm.org/bugs/" />
</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 --- - Missed pattern match for UADDV"
href="https://llvm.org/bugs/show_bug.cgi?id=25093">25093</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Missed pattern match for UADDV
</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>normal
</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>charlesturner7c5@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=15021" name="attach_15021" title="Test case demonstrating missed UADDV.">attachment 15021</a> <a href="attachment.cgi?id=15021&action=edit" title="Test case demonstrating missed UADDV.">[details]</a></span>
Test case demonstrating missed UADDV.
For the attached testcase, I expect to see an ADDV instruction emitted.
What I actually see is this,
$ llc < reduced4.ll
... <output snipped> ...
test: // @test
.cfi_startproc
// BB#0: // %entry
ldr q0, [x0]
ldr q1, [x1]
ushll v0.8h, v0.8b, #0
ushll v1.8h, v1.8b, #0
usubl v2.4s, v0.4h, v1.4h
usubl2 v0.4s, v0.8h, v1.8h
abs v0.4s, v0.4s
abs v1.4s, v2.4s
add v0.4s, v1.4s, v0.4s
ext v1.16b, v0.16b, v0.16b, #8
ext v1.16b, v0.16b, v1.16b, #8
add v0.4s, v0.4s, v1.4s
dup v1.4s, v0.s[1]
add v0.4s, v0.4s, v1.4s
fmov w0, s0
ret
... <output snipped> ...
The ext -> add sequence should be matched by UADDV.</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>