Pick better examples. "fpext float 3.1415 to double" won't parse because 3.1415
authorNick Lewycky <nicholas@mxc.ca>
Thu, 31 Mar 2011 18:20:19 +0000 (18:20 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 31 Mar 2011 18:20:19 +0000 (18:20 +0000)
isn't an exact float. Also "fpext float 1.0 to float" is invalid IR because
it's not performing an extension.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128647 91177308-0d34-0410-b5e6-96231b3b80d8

docs/LangRef.html

index 15ecf86d4f86142bf172c97dd2a2abfe53b3218a..eb36f093de780c5efdbe93a8eb247d970314a484 100644 (file)
@@ -4751,8 +4751,8 @@ entry:
 
 <h5>Example:</h5>
 <pre>
-  %X = fpext float 3.1415 to double        <i>; yields double:3.1415</i>
-  %Y = fpext float 1.0 to float            <i>; yields float:1.0 (no-op)</i>
+  %X = fpext float 3.125 to double         <i>; yields double:3.125000e+00</i>
+  %Y = fpext double %X to fp128            <i>; yields fp128:0xL00000000000000004000900000000000</i>
 </pre>
 
 </div>