[PATCH] D86637: [LangRef] get.active.lane.mask can produce poison

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 09:33:06 PDT 2020


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: efriedma, simoll, samparker, fhahn, dmgreen.
Herald added a reviewer: jdoerfert.
Herald added a project: LLVM.
SjoerdMeijer requested review of this revision.

We had already specified that second argument `n` of this intrinsic is `n > 0`, but now add to this that the result is a poison value if this is not the case.


https://reviews.llvm.org/D86637

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -16936,9 +16936,9 @@
 indexed by ``i``,  and ``%base``, ``%n`` are the two arguments to
 ``llvm.get.active.lane.mask.*``, ``%icmp`` is an integer compare and ``ult``
 the unsigned less-than comparison operator.  Overflow cannot occur in
-``(%base + i)`` and its comparison against ``%n`` with ``%n > 0``, as it is
-performed in integer numbers and not in machine numbers. The above is
-equivalent to:
+``(%base + i)`` and its comparison against ``%n`` as it is
+performed in integer numbers and not in machine numbers.  If ``%n`` is ``0``,
+then the result a poison value. The above is equivalent to:
 
 ::
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86637.288009.patch
Type: text/x-patch
Size: 761 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200826/0c0a9be7/attachment.bin>


More information about the llvm-commits mailing list