[llvm] da5a86b - [IR] Fix typo in trunc nuw semantics; NFC (#87285)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 7 00:54:14 PDT 2024
Author: Jacob Lifshay
Date: 2024-04-07T15:54:10+08:00
New Revision: da5a86b53e7d6e7ff7407b16c2c869894493ee99
URL: https://github.com/llvm/llvm-project/commit/da5a86b53e7d6e7ff7407b16c2c869894493ee99
DIFF: https://github.com/llvm/llvm-project/commit/da5a86b53e7d6e7ff7407b16c2c869894493ee99.diff
LOG: [IR] Fix typo in trunc nuw semantics; NFC (#87285)
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index b3f41eb2ea0934..a3722ecdf0c5ed 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -11448,7 +11448,7 @@ and converts the remaining bits to ``ty2``. Since the source size must
be larger than the destination size, ``trunc`` cannot be a *no-op cast*.
It will always truncate bits.
-If the ``nuw`` keyword is present, and any of the truncated bits are zero,
+If the ``nuw`` keyword is present, and any of the truncated bits are non-zero,
the result is a :ref:`poison value <poisonvalues>`. If the ``nsw`` keyword
is present, and any of the truncated bits are not the same as the top bit
of the truncation result, the result is a :ref:`poison value <poisonvalues>`.
More information about the llvm-commits
mailing list