[PATCH] D124861: Correct off-by-one error in the LangRef bitreverse intrinsic semantics

David Kreitzer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 3 11:53:40 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG29f70e3e7da8: Minor correction in bitreverse intrinsic semantics (authored by dkreitzer).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124861/new/

https://reviews.llvm.org/D124861

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -14945,7 +14945,7 @@
 """"""""""
 
 The ``llvm.bitreverse.iN`` intrinsic returns an iN value that has bit
-``M`` in the input moved to bit ``N-M`` in the output. The vector
+``M`` in the input moved to bit ``N-M-1`` in the output. The vector
 intrinsics, such as ``llvm.bitreverse.v4i32``, operate on a per-element
 basis and the element order is not affected.
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124861.426797.patch
Type: text/x-patch
Size: 515 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/405194bc/attachment.bin>


More information about the llvm-commits mailing list