mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-20 03:18:09 +00:00
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
This commit is contained in:
parent
d13bd22fbe
commit
af2f438c2c
@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
|
||||||
int %foo() {
|
int %foo() {
|
||||||
ret int 0
|
ret int 0
|
||||||
}
|
}
|
||||||
@ -49,6 +50,7 @@ int %main() {
|
|||||||
cast uint 0 to double
|
cast uint 0 to double
|
||||||
|
|
||||||
; cast long to ...
|
; cast long to ...
|
||||||
|
cast long 0 to bool
|
||||||
cast long 0 to sbyte
|
cast long 0 to sbyte
|
||||||
cast long 0 to ubyte
|
cast long 0 to ubyte
|
||||||
cast long 0 to short
|
cast long 0 to short
|
||||||
@ -59,6 +61,8 @@ int %main() {
|
|||||||
cast long 0 to ulong
|
cast long 0 to ulong
|
||||||
cast long 0 to float
|
cast long 0 to float
|
||||||
cast long 0 to double
|
cast long 0 to double
|
||||||
|
|
||||||
|
cast ulong 0 to bool
|
||||||
|
|
||||||
; cast float to ...
|
; cast float to ...
|
||||||
;cast float 0.0 to bool
|
;cast float 0.0 to bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user