From: Reid Spencer Date: Thu, 9 Nov 2006 21:48:10 +0000 (+0000) Subject: Fix runaway element and section ordering. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=3fa91b08a4ced58f520cb07d51316256d831893b;p=oota-llvm.git Fix runaway element and section ordering. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31606 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/LangRef.html b/docs/LangRef.html index 44c63242c56..8c045000fec 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2744,72 +2744,72 @@ If the value was non-zero, the bool result will be true.

+
Syntax:
+
-  <result> = fpext <ty> <value> to <ty2>             ; yields ty2
+  <result> = fptrunc <ty> <value> to <ty2>             ; yields ty2
 
Overview:
-

The 'fpext' extends a floating point value to a larger -floating point value.

+

The 'fptrunc' instruction truncates value to type +ty2.

+
Arguments:
-

The 'fpext' instruction takes a -floating point value to cast, -and a floating point type to cast it to.

+

The 'fptrunc' instruction takes a floating + point value to cast and a floating point type to +cast it to. The size of value must be larger than the size of +ty2. This implies that fptrunc cannot be used to make a +no-op cast.

Semantics:
-

The 'fpext' instruction extends the value from one floating -point type to another. If the type of the value and ty2 are -the same, the instruction is considered a no-op cast because no bits -change.

+

The 'fptrunc' instruction converts a +floating point value from a larger type to a smaller +type. If the value cannot fit within the destination type, ty2, then +the results are undefined.

Example:
-  %X = fpext float 3.1415 to double        ; yields double:3.1415
-  %Y = fpext float 1.0 to float            ; yields float:1.0 (no-op)
+  %X = fptrunc double 123.0 to float         ; yields float:123.0
+  %Y = fptrunc double 1.0E+300 to float      ; yields undefined
 
-
Syntax:
-
-  <result> = fptrunc <ty> <value> to <ty2>             ; yields ty2
+  <result> = fpext <ty> <value> to <ty2>             ; yields ty2
 
Overview:
-

The 'fptrunc' instruction truncates value to type -ty2.

- +

The 'fpext' extends a floating point value to a larger +floating point value.

Arguments:
-

The 'fptrunc' instruction takes a floating - point value to cast and a floating point type to -cast it to. The size of value must be larger than the size of -ty2. This implies that fptrunc cannot be used to make a -no-op cast.

+

The 'fpext' instruction takes a +floating point value to cast, +and a floating point type to cast it to.

Semantics:
-

The 'fptrunc' instruction converts a -floating point value from a larger type to a smaller -type. If the value cannot fit within the destination type, ty2, then -the results are undefined.

+

The 'fpext' instruction extends the value from one floating +point type to another. If the type of the value and ty2 are +the same, the instruction is considered a no-op cast because no bits +change.

Example:
-  %X = fptrunc double 123.0 to float         ; yields float:123.0
-  %Y = fptrunc double 1.0E+300 to float      ; yields undefined
+  %X = fpext float 3.1415 to double        ; yields double:3.1415
+  %Y = fpext float 1.0 to float            ; yields float:1.0 (no-op)