new testcase which crashes the inliner, thanks Bugpoint!
[oota-llvm.git] / test / ExecutionEngine / test-cast.ll
index 21270a361dc7e9d167427f3fcb8e7b27aeac8278..753c9fa708447c89a12b62746b726f5cf523b537 100644 (file)
@@ -1,4 +1,5 @@
 
+
 int %foo() {
   ret int 0
 }
@@ -19,25 +20,37 @@ int %main() {
   cast sbyte 4 to ulong
   cast sbyte 4 to double
 
+  ; cast ubyte to ...
+  cast ubyte 0 to float
+  cast ubyte 0 to double
+
   ; cast short to ...
   cast short 0 to short
   cast short 0 to long
   cast short 0 to ulong
   cast short 0 to double
 
+  ; cast ushort to ...
+  cast ushort 0 to float
+  cast ushort 0 to double
+
   ; cast int to ...
   cast int 6 to bool
   cast int 6 to short
   cast int 0 to int
   cast int 0 to long
   cast int 0 to ulong
+  cast int 0 to float
   cast int 0 to double
 
   ; cast uint to ...
   cast uint 0 to long
   cast uint 0 to ulong
+  cast uint 0 to float
+  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
@@ -48,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