mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
4572ce85b0
llvm-svn: 33296
16 lines
294 B
Plaintext
16 lines
294 B
Plaintext
; RUN: llvm-upgrade < %s | llvm-as | llvm-dis | not grep cast
|
|
; All of these should be eliminable
|
|
|
|
|
|
int %foo() {
|
|
ret int and (int cast (int()* %foo to int), int 1)
|
|
}
|
|
|
|
int %foo2() {
|
|
ret int and (int 1, int cast (int()* %foo2 to int))
|
|
}
|
|
|
|
bool %foo3() {
|
|
ret bool cast (bool()* %foo3 to bool)
|
|
}
|