2010-11-13 00:28:01 +00:00
|
|
|
; RUN: lli %s > /dev/null
|
2011-05-26 19:17:14 +00:00
|
|
|
; XFAIL: arm
|
|
|
|
; FIXME: ExecutionEngine is broken for ARM, please remove the following XFAIL when it will be fixed.
|
2004-11-06 23:32:43 +00:00
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
define i32 @foo(i32 %X, i32 %Y, double %A) {
|
|
|
|
%cond212 = fcmp une double %A, 1.000000e+00 ; <i1> [#uses=1]
|
|
|
|
%cast110 = zext i1 %cond212 to i32 ; <i32> [#uses=1]
|
|
|
|
ret i32 %cast110
|
2003-01-13 01:03:16 +00:00
|
|
|
}
|
|
|
|
|
2008-03-10 07:21:50 +00:00
|
|
|
define i32 @main() {
|
|
|
|
%reg212 = call i32 @foo( i32 0, i32 1, double 1.000000e+00 ) ; <i32> [#uses=1]
|
|
|
|
ret i32 %reg212
|
2003-01-13 01:03:16 +00:00
|
|
|
}
|
2008-03-10 07:21:50 +00:00
|
|
|
|