[llvm-dev] Misleading documentation on FP to integer conversion instructions?
antlists via llvm-dev
llvm-dev at lists.llvm.org
Tue Sep 8 09:57:29 PDT 2020
On 08/09/2020 17:04, Adrian McCarthy via llvm-dev wrote:
> > The ‘|fptosi|’ instruction converts its floating-point
> <http://llvm.org/docs/LangRef.html#t-floating> operand into the nearest
> signed integer value whose absolute value is not larger than the
> floating-point operand (i.e., it rounds towards zero).
"The fptosi instruction rounds its operand to the nearest integer closer
to zero (commonly known as truncation)"
Cheers,
Wol
More information about the llvm-dev
mailing list