<div dir="ltr">Hi all,<div><br></div><div style>There might be a simple error in the LLVM reference manual. The example for sext instruction:</div><div style><br></div><div style>%X = sext i8 -1 to i16 ; yields i16 :65535<br>
</div><div style><br></div><div style>%X should yield i16: -1, as opposed to 65535.</div><div style>Here is the simple patch (also attached):</div><div style><div><br></div><div>Index: docs/LangRef.rst</div><div>===================================================================</div>
<div>--- docs/LangRef.rst (revision 184496)</div><div>+++ docs/LangRef.rst (working copy)</div><div>@@ -5236,7 +5236,7 @@</div><div> </div><div> .. code-block:: llvm</div><div> </div><div>- %X = sext i8 -1 to i16 ; yields i16 :65535</div>
<div>+ %X = sext i8 -1 to i16 ; yields i16:-1</div><div> %Y = sext i1 true to i32 ; yields i32:-1</div><div> %Z = sext <2 x i16> <i16 8, i16 7> to <2 x i32> ; yields <i32 8, i32 7></div>
<div><br></div></div><div style><br></div><div style>Thanks!</div><div style>Bin</div></div>