<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/136342>136342</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[LLVM] llvm.fptosi.sat.* and llvm.fptoui.sat.* generate suboptimal code in some cases on x86
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
johnplatts
</td>
</tr>
</table>
<pre>
Here is a snippet that demonstrates suboptimal code generation for llvm.fptosi.sat.* and llvm.fptoui.sat.* on x86 with SSE2 or AVX512F enabled but not with AVX10.2 enabled in the case where floating point exceptions are ignored and masked:
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUkcFunDAQhp_GXEZBYPAuHHzYKkU9pKdIUa7GngWnxkaeIUnfvoKsuoeeerI0Y3v-bz5D5KeIqIX6JtRjYTaeU9ZvaY5rMMxUjMn91j8wI3gCAxT9uiIDz4bB4ZIicTaMBLSNaWW_mAA2OYQJI2bDPkW4pgwhvC_ldeVEviTDpZAXMNHd69u9niJ8dif48DzD8_N3CSnD5eVV1XIAjGYM6GDcGGLir0uXl9e6KuXfpo_AM4I1hPAx7-GvIRn2cYI1-ciAnxbXPRuB2dGmmDK6I9Bi6Bc60VwKpxvXN70pUNfnVlVV1TdNMetz3VulrOysrYyp5dWObavU6Kr-pGxVF17LSqqqrbu6k51qymtnTuos3alR57HplWgrXIwP5UGf8lR4og113ZyaVhbBjBjocCJlxA84ukLKXVHW-6OHcZtItFXwxHT_hj2HQ-bT08tPoR7_a-03Y_iPSh-B0vK1T7rZKbYc9My8kmguQg5CDpPneRtLmxYhh33A7XhYc3pDy0IOBwgJOdxI37X8EwAA__-otNVc">