1 ; RUN: llc < %s -mtriple=x86_64-pc-unknown -mattr=+sse2 | FileCheck -check-prefix=CHECK -check-prefix=CHECK64 %s
4 ; RUN: llc < %s -mtriple=i686-pc-unknown -mattr=+sse2 | FileCheck -check-prefix=CHECK -check-prefix=CHECK32 %s
6 define i32 @isint_return(double %d) nounwind {
7 ; CHECK-LABEL: isint_return:
10 %i = fptosi double %d to i32
12 %e = sitofp i32 %i to double
14 %c = fcmp oeq double %d, %e
15 ; CHECK32-NOT: movd {{.*}}, %r{{.*}}
20 %z = zext i1 %c to i32
24 define i32 @isint_float_return(float %f) nounwind {
25 ; CHECK-LABEL: isint_float_return:
28 %i = fptosi float %f to i32
30 %g = sitofp i32 %i to float
32 %c = fcmp oeq float %f, %g
33 ; CHECK-NOT: movd {{.*}}, %r{{.*}}
36 %z = zext i1 %c to i32
42 define void @isint_branch(double %d) nounwind {
43 ; CHECK-LABEL: isint_branch:
45 %i = fptosi double %d to i32
47 %e = sitofp i32 %i to double
49 %c = fcmp oeq double %d, %e
52 br i1 %c, label %true, label %false