<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/136315>136315</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [LLVM] llvm.fptosi.sat.* and llvm.fptoui.sat.* generate suboptimal code on PowerPC targets
        </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>
    The @llvm.fptosi.sat.* and @llvm.fptoui.sat.* intrinsics generate suboptimal code on PowerPC targets as demonstrated in a snippet over at https://godbolt.org/z/r6ajjTM3v.

Equivalent, more optimal alternatives on 64-bit PowerPC, POWER8, and POWER9 can be found at https://godbolt.org/z/4rezzhGna.
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyUks9unTwQxZ_GbEZBYP4vWNwvCd8mUa-qqF2PYS74ytjUHoh6n74CJYpatVK7Aut4Ruf4dzAEPVqiVhT_ieIhwpUn59urm-xikDlEyg3f25eJQOSJMdscXxZ2QccBORbyBGiHn6T1Q9KWvbZB9wFGsuSRCcKq3MJ6RgO9GwichbN7JX--B0Y_EgfAAAPNzgbeJwbQFhCC1ctCDG4jD8gwMS9BZCchOyG70Q3KGY6dH4XsbkJ2vsTr9eU522KRnERyevy26g0NWRbyHmbnCd59oGHyFllvFHY_ZX6nNL_b2q-fP319_Fzvf3va49RAjxYUwcWtdvgbR7mn223632IcDW02NFmDEbVpledNXVdZGk0t1Und5JLy_pKrbKCsVFRnqkbVlGV1ySPdykQWSZ7WaZEUWRqnmGAlq14m6VCV2Ig8oRm1iQ8ezo-RDmGlNs3KLC0ig4pMOGBLaekVDlVIubP37T50p9Yx7EB14PCxhjWboyVPT1-eRfEAf-rC74rwD_Sj1Zv2l6fUPK0q7t0sZLevf_vcLd5dqWchuyNGELJ7y7m18kcAAAD__xgw8CE">