[llvm-dev] Misleading documentation on FP to integer conversion instructions?
Caldarale, Charles R via llvm-dev
llvm-dev at lists.llvm.org
Fri Sep 4 11:42:13 PDT 2020
> From: llvm-dev [mailto:llvm-dev-bounces at lists.llvm.org]
> On Behalf Of Stephen Neuendorffer via llvm-dev
> Subject: Re: [llvm-dev] Misleading documentation on FP to integer
conversion instructions?
> If fptosi takes 0.9 -> 0, then that is not 'rounding' in any sense I'm
aware of (IEEE754 or otherwise).
The IEEE 754 spec does include the term "round toward 0" (truncation) in the
five rounding modes.
> Rounding (in the IEE754 sense) determines how a number is converted when
it is halfway between
> two candidate results. (see round(), ceil(), floor()).
The term for that is "round to nearest"; the word "rounding" by itself
intentionally includes all possible rounding modes.
The problem with the LLVM documentation is the use of the word "nearest" in
the description of round toward 0; that part should be removed or reworded
to avoid confusion.
- Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200904/d3c0d61f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 7872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200904/d3c0d61f/attachment.bin>
More information about the llvm-dev
mailing list