OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
068c5f4
)
Add an example to the trunc instruction to clarify trunc to bool.
author
Reid Spencer
<rspencer@reidspencer.com>
Fri, 5 Jan 2007 21:33:08 +0000
(21:33 +0000)
committer
Reid Spencer
<rspencer@reidspencer.com>
Fri, 5 Jan 2007 21:33:08 +0000
(21:33 +0000)
Example provided by Baptiste Lepilleur.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32931
91177308
-0d34-0410-b5e6-
96231b3b80d8
docs/LangRef.html
patch
|
blob
|
history
diff --git
a/docs/LangRef.html
b/docs/LangRef.html
index
5e03030
..
0c004e4
100644
(file)
--- 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>