Fix PR30781.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/unittests/ADT/APFloatTest.cpp | ||
---|---|---|
1867 | The 1 is the payload. A signaling NaN must have a payload. By default it is the highest bit after the "quiet" bit. To make the test more deterministic and not rely on implementation specifics, we define the payload explicitly. We will need the payload to make sure that when, later, a signaling NaN becomes a quiet NaN, it still has the same payload. |
llvm/unittests/ADT/APFloatTest.cpp | ||
---|---|---|
1867 | A few more different payload values might be good, to be sure this isn't just a single bit preserved |
llvm/unittests/ADT/APFloatTest.cpp | ||
---|---|---|
1867 | Maybe just use a unique payload instead, like "123"? |
Why the 1?