Commit some changes I had managed to lose last night while refactoring the code....
[oota-llvm.git] / test / CodeGen / X86 / scalar-min-max-fill-operand.ll
1 ; RUN: llc < %s -march=x86-64 | grep min | count 1
2 ; RUN: llc < %s -march=x86-64 | grep max | count 1
3 ; RUN: llc < %s -march=x86-64 | grep mov | count 2
4
5 declare float @bar()
6
7 define float @foo(float %a) nounwind
8 {
9   %s = call float @bar()
10   %t = fcmp olt float %s, %a
11   %u = select i1 %t, float %s, float %a
12   ret float %u
13 }
14 define float @hem(float %a) nounwind
15 {
16   %s = call float @bar()
17   %t = fcmp ogt float %s, %a
18   %u = select i1 %t, float %s, float %a
19   ret float %u
20 }