When doing sext/zext of constants, the target type must be strictly
authorDuncan Sands <baldrick@free.fr>
Tue, 13 Jul 2010 12:06:14 +0000 (12:06 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 13 Jul 2010 12:06:14 +0000 (12:06 +0000)
wider than the source type.  Correct LangRef.

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

docs/LangRef.html

index dbcd3556a4c0731bad43320f603842556a149ffd..80bf1c8b3429f326d31131276f553a4d788385bb 100644 (file)
@@ -2513,13 +2513,11 @@ end:
 
   <dt><b><tt>zext (CST to TYPE)</tt></b></dt>
   <dd>Zero extend a constant to another type. The bit size of CST must be
-      smaller or equal to the bit size of TYPE.  Both types must be
-      integers.</dd>
+      smaller than the bit size of TYPE.  Both types must be integers.</dd>
 
   <dt><b><tt>sext (CST to TYPE)</tt></b></dt>
   <dd>Sign extend a constant to another type. The bit size of CST must be
-      smaller or equal to the bit size of TYPE.  Both types must be
-      integers.</dd>
+      smaller than the bit size of TYPE.  Both types must be integers.</dd>
 
   <dt><b><tt>fptrunc (CST to TYPE)</tt></b></dt>
   <dd>Truncate a floating point constant to another floating point type. The