Reapply r81171 with a fix: don't try to use i64 when it
[oota-llvm.git] / test / CodeGen / X86 / cmp2.ll
1 ; RUN: llc < %s -march=x86 -mattr=+sse2 | grep ucomisd | grep CPI | count 2
2
3 define i32 @test(double %A) nounwind  {
4  entry:
5  %tmp2 = fcmp ogt double %A, 1.500000e+02; <i1> [#uses=1]
6  %tmp5 = fcmp ult double %A, 7.500000e+01; <i1> [#uses=1]
7  %bothcond = or i1 %tmp2, %tmp5; <i1> [#uses=1]
8  br i1 %bothcond, label %bb8, label %bb12
9
10  bb8:; preds = %entry
11  %tmp9 = tail call i32 (...)* @foo( ) nounwind ; <i32> [#uses=1]
12  ret i32 %tmp9
13
14  bb12:; preds = %entry
15  ret i32 32
16 }
17
18 declare i32 @foo(...)