[libc-commits] [libc] [libc][math][c23] Add exp2m1f16 C23 math function (PR #105690)

Matt Arsenault via libc-commits libc-commits at lists.llvm.org
Thu Aug 22 10:59:55 PDT 2024


arsenm wrote:

> I poked at it but couldn't figure out why it's giving `0.0` instead of `-0.0`. Seems to work on NVPTX so I don't know what's different here. Ruled out `__builtin_rint` and optimizations, so it might just be some weird lowering. @arsenm might have a guess? Otherwise, feel free to remove (or comment it out with a note) for the GPU case so you're not blocked on that.

exp2 should be correctly lowered and it's just a bug if it's not 

https://github.com/llvm/llvm-project/pull/105690


More information about the libc-commits mailing list