2006-12-04 00:17:19 +08:00
|
|
|
; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
|
2004-11-07 07:32:43 +08:00
|
|
|
; RUN: lli %t.bc > /dev/null
|
|
|
|
|
2003-01-13 09:03:16 +08:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|