summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-07-13 12:06:14 +0000
committerDuncan Sands <baldrick@free.fr>2010-07-13 12:06:14 +0000
commita522e563a828c80b9b6e1c0cebbf1b61e3e83747 (patch)
treef4f23559d2b03dc021009938d431aa5ba330db59 /llvm
parent36745fda344d3f480fea0d327a276f421268a4ea (diff)
downloadbcm5719-llvm-a522e563a828c80b9b6e1c0cebbf1b61e3e83747.tar.gz
bcm5719-llvm-a522e563a828c80b9b6e1c0cebbf1b61e3e83747.zip
When doing sext/zext of constants, the target type must be strictly
wider than the source type. Correct LangRef. llvm-svn: 108238
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/LangRef.html6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index dbcd3556a4c..80bf1c8b342 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -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
OpenPOWER on IntegriCloud