From 5a8e755101320955b4a86b034dec6e30bcc2b9f4 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Tue, 17 May 2022 21:36:36 +0100 Subject: [PATCH] [docs][LangRef] Fix typo in llvm.smul.fix example --- llvm/docs/LangRef.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index e0905bb..f5ba612 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 -- 2.7.4