From: Reid Spencer
Date: Fri, 5 Jan 2007 21:33:08 +0000 (+0000)
Subject: Add an example to the trunc instruction to clarify trunc to bool.
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=5cf0fe40d0632fb130ca81f7efa32fa988de3c79;p=oota-llvm.git
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
---
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 5e030305b5e..0c004e48251 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2701,6 +2701,7 @@ It will always truncate bits.
%X = trunc i32 257 to i8 ; yields i8:1
%Y = trunc i32 123 to bool ; yields bool:true
+ %Y = trunc i32 122 to bool ; yields bool:false