mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-24 20:44:51 +00:00
4572ce85b0
llvm-svn: 33296
17 lines
399 B
LLVM
17 lines
399 B
LLVM
; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
|
implementation ; Functions:
|
|
|
|
int %foo(int %X, int %Y, double %A) {
|
|
%cond212 = setne double %A, 1.000000e+00 ; <bool> [#uses=1]
|
|
%cast110 = cast bool %cond212 to int ; <int> [#uses=1]
|
|
ret int %cast110
|
|
}
|
|
|
|
int %main() {
|
|
%reg212 = call int %foo( int 0, int 1, double 1.000000e+00 ) ; <int> [#uses=1]
|
|
ret int %reg212
|
|
}
|