From 28afd4306aa09516ae3396a42513a5c44f30661a Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 13 Jul 2010 12:06:14 +0000 Subject: When doing sext/zext of constants, the target type must be strictly 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 | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'docs') diff --git a/docs/LangRef.html b/docs/LangRef.html index dbcd3556a4..80bf1c8b34 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2513,13 +2513,11 @@ end:
zext (CST to TYPE)
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.
+ smaller than the bit size of TYPE. Both types must be integers.
sext (CST to TYPE)
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.
+ smaller than the bit size of TYPE. Both types must be integers.
fptrunc (CST to TYPE)
Truncate a floating point constant to another floating point type. The -- cgit v1.2.3