[PATCH] D72685: [PowerPC] Exploit VSX rounding instrs for rint
Qiu Chaofan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 12 19:40:58 PST 2020
qiucf added a comment.
In D72685#1868618 <https://reviews.llvm.org/D72685#1868618>, @lkail wrote:
> Correct me if I'm wrong. `rint(x)` returns `x` if `x` is an NaN. However, intruction like `XSRDPIC` may turn `SNAN` to `QNAN`. Does it matter?
I didn't find the language standard ensuring this (only '//return NaN for NaN//'). It seems Glibc's `rint` would also return a `qNaN` for `sNaN`, while some other implementations keeps it. Is that specified by any doc/spec? Thanks.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72685/new/
https://reviews.llvm.org/D72685
More information about the llvm-commits
mailing list