[llvm] 5a8e755 - [docs][LangRef] Fix typo in llvm.smul.fix example
via llvm-commits
llvm-commits at lists.llvm.org
Tue May 17 13:36:39 PDT 2022
Author: Nuno Lopes
Date: 2022-05-17T21:36:36+01:00
New Revision: 5a8e755101320955b4a86b034dec6e30bcc2b9f4
URL: https://github.com/llvm/llvm-project/commit/5a8e755101320955b4a86b034dec6e30bcc2b9f4
DIFF: https://github.com/llvm/llvm-project/commit/5a8e755101320955b4a86b034dec6e30bcc2b9f4.diff
LOG: [docs][LangRef] Fix typo in llvm.smul.fix example
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index e0905bb409920..f5ba612d2bfda 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -15857,7 +15857,7 @@ multiplication can be represented as
; Expands to
%a2 = sext i4 %a to i8
%b2 = sext i4 %b to i8
- %mul = mul nsw nuw i8 %a, %b
+ %mul = mul nsw nuw i8 %a2, %b2
%scale2 = trunc i32 %scale to i8
%r = ashr i8 %mul, i8 %scale2 ; this is for a target rounding down towards negative infinity
%result = trunc i8 %r to i4
More information about the llvm-commits
mailing list