Add tests for casts from unsigned integers to floats
authorChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 20:35:29 +0000 (20:35 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 12 May 2003 20:35:29 +0000 (20:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6147 91177308-0d34-0410-b5e6-96231b3b80d8

test/ExecutionEngine/test-cast.ll

index 21270a361dc7e9d167427f3fcb8e7b27aeac8278..dbb31ab5fed96083029a7975be91dae0f35fc868 100644 (file)
@@ -19,23 +19,34 @@ 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 sbyte