Skip to content

Commit da5a86b

Browse files
[IR] Fix typo in trunc nuw semantics; NFC (#87285)
1 parent 869797d commit da5a86b

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
@@ -11448,7 +11448,7 @@ and converts the remaining bits to ``ty2``. Since the source size must
1144811448
be larger than the destination size, ``trunc`` cannot be a *no-op cast*.
1144911449
It will always truncate bits.
1145011450

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

0 commit comments

Comments
 (0)