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

    <tr>
        <th>Summary</th>
        <td>
            sprintf hermetic test fails on riscv
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            test-suite,
            libc
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
            michaelrj-google
      </td>
    </tr>

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

<pre>
    https://reviews.llvm.org/D151539 disabled `sprintf` hermetic test as it fails on riscv. This bug is about investigating the failure and fixing it in order to re-enable the hermetic test.

The failure log has many messages of this kind:

```
/home/sivachandra/llvm-project/libc/test/src/stdio/sprintf_test.cpp:738: FAILURE
      Expected: buff
      Which is: 0x1.0p+0
To be equal to: "0x1.1p+0"
      Which is: 0x1.1p+0
/home/sivachandra/llvm-project/libc/test/src/stdio/sprintf_test.cpp:741: FAILURE
      Expected: buff
      Which is: 0x1.1p+0
To be equal to: "0x1.2p+0"
      Which is: 0x1.2p+0
/home/sivachandra/llvm-project/libc/test/src/stdio/sprintf_test.cpp:744: FAILURE
      Expected: buff
      Which is: 0x1.0p+0
To be equal to: "0x1.1p+0"
      Which is: 0x1.1p+0
/home/sivachandra/llvm-project/libc/test/src/stdio/sprintf_test.cpp:747: FAILURE
      Expected: buff
      Which is: 0x1.1p+0
To be equal to: "0x1.2p+0"
      Which is: 0x1.2p+0
...
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzkVE1vnDAQ_TXmMloEw9dy4LBpglSppypVj5UNA0xq8NY22-TfV2ZX7SaVqhzaqlIRAg08j9-bJz_pHI8LUSOKG4E4czdJ0vZhNxozahKIoriN5OonYxvHJ9lNcumtjJTpn5rJ-6MT2UFgK7C1dGL66mKtT3Ns7CiwvU2LtMhq6NlJpakHUSbuaHnxgygTmMjO5LkDT86DdMAeBsnagVnAsutOMdxP7ECtI7ADqczqgZcTOc-j9LyM4Cfa1qyWQC49DPwYPnPAgbE9WfAGLO1oCRQ2_LN9Y5HciuRwft5fddNmhEk6mOXyBDM5J0dyYAbwgdJnXvog_WqxKJPLfS6xncxMAturwQlsw3x2R2seqPOhZNUJbAOVALWhcL5nE97nWX3aeHbHo8gOVbYX2QHaw9t3H97fnXeC7bp7PFLnKbACtQ7D9b-PE3cTcDALksc0To4Cby487w0oAvqySg3eBIRADKD0DEL8Vaf0qtMfUpynv0Fx-hrF-BrF-BcU5_-dx9U_63Ecxy_Od9Q3WV9ntYyoScv9vsjzfVlFU5N3ZZ8XVU6FKlQvs6FUWBT7okz3RYl1HnGDCWZJlRTJPs2ximup0r4qMEu7Sg11LfKEZsn6e4pG7NxKTZmVVR1pqUi7S1iH8e3cyn6LaXwjEM9T3zLbNpsjah2dyBPNzv9I5siz19RcfHgRw88DOFqtfpHzI_tpVXFn5ovtP7u_cXYC2432twAAAP__GKLsgw">