blob: 218154f8cfccdd9866bfc4bf372d23cea2e1c4f3 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade %s | llvm-as -f -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
4
5implementation ; Functions:
6
7int %foo(int %X, int %Y, double %A) {
8 %cond212 = setne double %A, 1.000000e+00 ; <bool> [#uses=1]
9 %cast110 = cast bool %cond212 to int ; <int> [#uses=1]
10 ret int %cast110
11}
12
13int %main() {
14 %reg212 = call int %foo( int 0, int 1, double 1.000000e+00 ) ; <int> [#uses=1]
15 ret int %reg212
16}