mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Add tests for casts from unsigned integers to floats
llvm-svn: 6147
This commit is contained in:
parent
a9a5cdb2be
commit
d6a47bbefb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user