summaryrefslogtreecommitdiff
path: root/test/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-06-01 03:37:25 +0000
committerChris Lattner <sabre@nondot.org>2003-06-01 03:37:25 +0000
commitaf2f438c2c4fe1443658a8446d9714146ea7a968 (patch)
tree3b9c97c8697410f5482a80026000a81e207175f3 /test/ExecutionEngine
parentd13bd22fbe238e0b1774b8426adbca1a5bf8f398 (diff)
Add tests for cast of long to bool
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ExecutionEngine')
-rw-r--r--test/ExecutionEngine/test-cast.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ExecutionEngine/test-cast.ll b/test/ExecutionEngine/test-cast.ll
index a30fc06322e..753c9fa7084 100644
--- a/test/ExecutionEngine/test-cast.ll
+++ b/test/ExecutionEngine/test-cast.ll
@@ -1,4 +1,5 @@
+
int %foo() {
ret int 0
}
@@ -49,6 +50,7 @@ int %main() {
cast uint 0 to double
; cast long to ...
+ cast long 0 to bool
cast long 0 to sbyte
cast long 0 to ubyte
cast long 0 to short
@@ -59,6 +61,8 @@ int %main() {
cast long 0 to ulong
cast long 0 to float
cast long 0 to double
+
+ cast ulong 0 to bool
; cast float to ...
;cast float 0.0 to bool