We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 869797d commit da5a86bCopy full SHA for da5a86b
llvm/docs/LangRef.rst
@@ -11448,7 +11448,7 @@ and converts the remaining bits to ``ty2``. Since the source size must
11448
be larger than the destination size, ``trunc`` cannot be a *no-op cast*.
11449
It will always truncate bits.
11450
11451
-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,
11452
the result is a :ref:`poison value <poisonvalues>`. If the ``nsw`` keyword
11453
is present, and any of the truncated bits are not the same as the top bit
11454
of the truncation result, the result is a :ref:`poison value <poisonvalues>`.
0 commit comments