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

    <tr>
        <th>Summary</th>
        <td>
            APFloat incorrectly generates signaling NaNs on MIPS
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          Muon
      </td>
    </tr>
</table>

<pre>
    The signaling bit convention on MIPS is opposite that of x86 and ARM, but APFloat doesn't know that. As a result, constant folding to a NaN erroneously produces a signaling NaN instead of a quiet NaN on MIPS: https://godbolt.org/z/TP5hePhWP
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckcFu2zAQRL-GuixiSCuJtg46uC0E9ODAaAP0TEpriS3NdcllUvfrCwkJguZEgJzhPMyYlNwciHrVflLtl8JkWTj2p8yhsDzd-6eFYJUY78IM1gmMHJ4piOMAHOD09fwdXAK-3Tg5IZDFCPAF_hw0mDDB8dtJ4WewWeB4HjwbgYkpBYV7gV-BXzbHDo4JDERK2cuqHzkkMUHgwn5ao4XBwKN5BIqRA3FO_g63yFMeabW-Q64iF5KQmVYQA7-zI9muX4FVfYRF5JZUfVQ4KBxmnix72XGcFQ5_FQ5P53ah8_LjXEx9PXV1ZwrqK73XLWp90MXSV7WptK4q2-lDc0FdV12jy86OZmza1h4K12OJdYmVLtu2Qr2zFRoi7Mp2avZNW6qmpKtxfuf983XNLlxKmXpd7jtdeGPJp20ZxEAvsD0qxHWo2K-eB5vnpJrSuyTp_Rdx4ql_q9uFkWOkUfwdZgoUjVD6v6_01kyRo-8_VONkyXY38lXhsEa8Hg-3yD9pFIXDBpYUDhv4vwAAAP__r6bDRw">