<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/139018>139018</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[DirectX] Dot4AddU8Packed and Dot4AddI8Packed Do not match validator expectations
</td>
</tr>
<tr>
<th>Labels</th>
<td>
backend:DirectX
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
farzonl
</td>
</tr>
</table>
<pre>
We are seeing many errors for this:
7680x error: 'dx.op.dot4AddPacked' is not a DXILOpFuncition for DXILOpcode 'Dot4AddU8Packed'.
7680x error: 'dx.op.dot4AddPacked' is not a DXILOpFuncition for DXILOpcode 'Dot4AddI8Packed'.
48x error: External function 'dx.op.dot4AddPacked.i32' is unused.
The fix seems to be to set the result type to `OverloadTy` see: https://github.com/llvm/llvm-project/commit/90a97c4c68ffe8f0329d5f3f69f41da66e5e05e2
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJy0Uk2PmzAQ_TXmMioyNjb4wCFVGmmlStvDVt2rsYfg1uDINlHSX18Bu_1Y9dJDpRGgQe-9mTdPp-TOM2JHxHsijoVe8hhiN-j4Pcy-6IO9d18QdERIiG4-w6TnO2CMISYYQoQ8ukT4gdC1GtnS2_6X8AMQ1thbGS6lDbk-WPtJm29oCWvAJZhDBg3H54ePj5fTMhuXXZg3yr1ngsWV4bhjP7c_0eX_VXr4U6luf9P5cMsYZ-1hWGaz0fxduXScvagv85LQlrtBTyPC4G6rmVOCHKDH9ZkwQx4RIqbFZ8j3y9Ymkj5eMfqg7dOdSLrC1inGnC-b6exE2Ons8rj0pQkTYSfvr6-vd5cYvqLJhJ1MmCa3fiiqVWNqI9thwHagnCkrBj5INdSV1VKiQCqQ7dPuVdiOW8WVLrCrmlrKpuGKF2PH2opzo7DVWFeGS86E4KqitmZGCdSF6xhlggra0poqwUuJUlBJrax7JYcaSU1x0s6X67xliOfCpbRgV3FFq7bwukeftmwy1q_Gzpbww9FFNPmZMLZGNnbbsv1yTqSm3qWcftFll_0W7leMOMKbQIGeLbw5PRzDlppJZzPCVXtndQ4R8HZBk_V6-FQs0Xf_fIltv0TY6WXFa8d-BAAA__91AR52">