[libc-commits] [libc] [libc] Keep the compiler from folding the inputs of floating point tests (PR #236613)
Mike Lothian via libc-commits
libc-commits at lists.llvm.org
Fri Nov 6 04:59:47 PST 2026
FireBurn wrote:
The first `volatile T` version did not compile for the class types the tests are instantiated with (BFloat16 has no volatile copy constructor, `fp_bitwise_test` failed to build). `opaque` now reads the value back through a volatile pointer instead, which works for every type. fp_bitwise_test and the six LTO tests pass with it.
https://github.com/llvm/llvm-project/pull/236613
More information about the libc-commits
mailing list