Skip to content

Commit ba6e2bb

Browse files
[IR] Fix typo in trunc nuw semantics; NFC
1 parent 0478adc commit ba6e2bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/LangRef.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11445,7 +11445,7 @@ and converts the remaining bits to ``ty2``. Since the source size must
1144511445
be larger than the destination size, ``trunc`` cannot be a *no-op cast*.
1144611446
It will always truncate bits.
1144711447

11448-
If the ``nuw`` keyword is present, and any of the truncated bits are zero,
11448+
If the ``nuw`` keyword is present, and any of the truncated bits are non-zero,
1144911449
the result is a :ref:`poison value <poisonvalues>`. If the ``nsw`` keyword
1145011450
is present, and any of the truncated bits are not the same as the top bit
1145111451
of the truncation result, the result is a :ref:`poison value <poisonvalues>`.

0 commit comments

Comments
 (0)