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

    <tr>
        <th>Summary</th>
        <td>
            [PPC] APFloat ilogb ignores less significant double of DoubleAPFloat cases 
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          hubert-reinterpretcast
      </td>
    </tr>
</table>

<pre>
    The second double is ignored by `ilogb` in:
https://github.com/llvm/llvm-project/blob/0c0c5c475857e9cd6a2fe82fd1e46abdb174a1c1/llvm/include/llvm/ADT/APFloat.h#L1349

This is not correct for cases where the first double is exactly a power of two and the second double is a normal floating-point value with the opposite sign.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUs1unDAQfhpzGQWZsVngwCHtilMPOeQF_DOAK8dGtsk2b1_BJt1KPfUy_p3R96dydksgGln7jbXXSu1ljWlcd02pPCVyoVDaEhWjcql0tB_j60qQycRgwcZdewKXwS0hJrKgP4BduPNx0ezCwQUmnhm_Mv68lrLl44QTw2lxZd11beIbw8n796_laUvxJ5nCcNI-aoYTN9y0RnZt33Y0GHtROFOPs21IXpS2uumkakzzmOOC8bulx8Xz9fWoL5OPqtQrQ_GjEXK447rX1_UgkSHEAiamRKbAHBMYlSnDbaVEUFaC2aVc_uJNv5Qp_gMUbPFGCeIM5RZBBXt-_0cnBSGmN-VhPrC4sDxt0YUC78rvBDdX1rMvblvMrhAc7tR3iJUdhR3EoCoam64RQ9O0l75aR9VL5K1ALoRGYVrbGdl01vS9toMlU7kROUouUSAKlH1tBoXDQJ1uzTz0pJjk9Kacrw_B6piWyuW809gPvWwqrzT5fCYEMdANzkeGeAQmjadtel8yk9y7XPJjSnHFn9F6efnO2it8WgBnPj4zk8FTzidRNzujwh954wzXc_fVdjej2pMf_ztNJ-bMcDo5_Q4AAP__93H4uw">