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 0478adc commit ba6e2bbCopy full SHA for ba6e2bb
llvm/docs/LangRef.rst
@@ -11445,7 +11445,7 @@ and converts the remaining bits to ``ty2``. Since the source size must
11445
be larger than the destination size, ``trunc`` cannot be a *no-op cast*.
11446
It will always truncate bits.
11447
11448
-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,
11449
the result is a :ref:`poison value <poisonvalues>`. If the ``nsw`` keyword
11450
is present, and any of the truncated bits are not the same as the top bit
11451
of the truncation result, the result is a :ref:`poison value <poisonvalues>`.
0 commit comments