diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-01-05 21:33:08 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-01-05 21:33:08 +0000 |
commit | 5cf0fe40d0632fb130ca81f7efa32fa988de3c79 (patch) | |
tree | d87855ac6e9a996aa098bac0fac5eebca455076e /docs | |
parent | 068c5f47ea9243b353a49ca7eb07fac0cb32f1ee (diff) | |
download | llvm-5cf0fe40d0632fb130ca81f7efa32fa988de3c79.tar.gz llvm-5cf0fe40d0632fb130ca81f7efa32fa988de3c79.tar.bz2 llvm-5cf0fe40d0632fb130ca81f7efa32fa988de3c79.tar.xz |
Add an example to the trunc instruction to clarify trunc to bool.
Example provided by Baptiste Lepilleur.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/LangRef.html | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 5e030305b5..0c004e4825 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2701,6 +2701,7 @@ It will always truncate bits.</p> <pre> %X = trunc i32 257 to i8 <i>; yields i8:1</i> %Y = trunc i32 123 to bool <i>; yields bool:true</i> + %Y = trunc i32 122 to bool <i>; yields bool:false</i> </pre> </div> |