zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / test / CodeGen / X86 / scalar-min-max-fill-operand.ll
blobfe40758d8ecd992e51c94deada25fcaf8f6a0a97
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
5 declare float @bar()
7 define float @foo(float %a) nounwind
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
14 define float @hem(float %a) nounwind
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