blob: 411ac524a3b0a2d330a8263cc5a4594f6220ef03 [file] [log] [blame]
Tanya Lattnere9789ef2004-11-06 23:32:43 +00001; RUN: llvm-as -f %s -o %t.bc
2; RUN: lli %t.bc > /dev/null
3
Chris Lattner4a8068f2003-01-13 01:03:16 +00004
5implementation ; Functions:
6
Chris Lattner4a8068f2003-01-13 01:03:16 +00007int %foo(int %X, int %Y, double %A) {
Chris Lattner4a8068f2003-01-13 01:03:16 +00008 %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() {
Chris Lattner4a8068f2003-01-13 01:03:16 +000014 %reg212 = call int %foo( int 0, int 1, double 1.000000e+00 ) ; <int> [#uses=1]
15 ret int %reg212
16}