[llvm] 6966cf3 - [LangRef] Clarify the `nsz` semantic for `{u,s}itofp` (#201557)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 14 17:17:24 PDT 2026
Author: paperchalice
Date: 2026-06-15T08:17:19+08:00
New Revision: 6966cf3f7120f5068d811b439ac431f7af6c6e6d
URL: https://github.com/llvm/llvm-project/commit/6966cf3f7120f5068d811b439ac431f7af6c6e6d
DIFF: https://github.com/llvm/llvm-project/commit/6966cf3f7120f5068d811b439ac431f7af6c6e6d.diff
LOG: [LangRef] Clarify the `nsz` semantic for `{u,s}itofp` (#201557)
`nsz` has special semantic in `{u,s}itofp`, which falls into the "unless
otherwise mentioned" in `nsz` doc, this PR clarifies it in LangRef.
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index a7a69d89c3c1f..e570c9a385e8f 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -13156,6 +13156,9 @@ the default rounding mode.
If the ``nneg`` flag is set, and the ``uitofp`` argument is negative,
the result is a poison value.
+If the '``nsz``' flag is set and the input value is 0, the sign bit of
+the result is non-deterministic.
+
Example:
""""""""
@@ -13203,6 +13206,9 @@ quantity and converts it to the corresponding floating-point value. If the
value cannot be exactly represented, it is rounded using the default rounding
mode.
+If the '``nsz``' flag is set and the input value is 0, the sign bit of
+the result is non-deterministic.
+
Example:
""""""""
More information about the llvm-commits
mailing list