<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59894>59894</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DAG] Recognise sub(max(x,y),min(x,y)) as an ISD::ABDS/ABDU absolute difference node
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:ARM,
backend:AArch64,
llvm:codegen
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
RKSimon
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
RKSimon
</td>
</tr>
</table>
<pre>
https://alive2.llvm.org/ce/z/vSQv3G
Currently we only recognize the absdiff nodes from trunc(sub(ext(x),ext(y)) patterns
We only use these node for arm/aarch64 targets at the moment but I'd like to support them more generally eventually
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckk1vnDAQhn_NcBllBQNL8IEDWUQUVT00q6pnA7OsG2Ov_LHN5tdXQJo2vYDntTVfzyu9V5NhrmH_AETPX45qtgaIYN8mMoazdfW7mPR2vNXnEC4e8gaoA-qkVlemndbXeWfdBNQNDNS9AXXX47dr_ghpC2mzfQ_ROTZB3_AXozX6ho4HOxn1xhjOjLL3ozqd0NiRPZ6cnTG4aAagysceqOLXAFS9Agmgwxbc1kDgRYbAzvh_6_14rxL9mt_zmhlP1qF089K9dMO5LDBIN3HwKMPax2xnNgH7GPAJ6H5ErV4Yg0UfLxfr1kczztYxTmzYSa1vyFc2IS7HZKzzUeRCJlxn5X1OZVaWaXKuiStRnYacs6yQaZlmFfdDWhbl0As-ZZSomlLK0ywVWbovKN2J-_2YC5J7ITNZjAKKlGep9MfCE-V95HovKlEkWvas_TvJXg4vbEbIm-b568KTDp_VZp3942bJCHkz2JEn_mMAVy_yXR8nD0WqlQ_-b-mggl590zaPsG_xeYPpGTdas3zdaB02SIdZmU-CQOlRGnw6touh8qZ5aI9AXfPQfl_MYHUMjIsl2LEZNnxJdPo_E04qnGO_G-zCdJ1j-91dnP3JQwDq1jV5oG7d1O8AAAD__7fH7ko">