1 ; llvm-as < %s | llc -march=x86 > %t
4 ; grep jne %t | count 1
6 ; grep setnp %t | count 1
7 ; grep sete %t | count 1
8 ; grep and %t | count 1
9 ; grep cvt %t | count 4
11 define i32 @isint_return(double %d) nounwind {
12 %i = fptosi double %d to i32
13 %e = sitofp i32 %i to double
14 %c = fcmp oeq double %d, %e
15 %z = zext i1 %c to i32
21 define void @isint_branch(double %d) nounwind {
22 %i = fptosi double %d to i32
23 %e = sitofp i32 %i to double
24 %c = fcmp oeq double %d, %e
25 br i1 %c, label %true, label %false