1 ; RUN: llc < %s -march=arm -mcpu=cortex-a8 | FileCheck %s
3 define float @fmin_ole(float %x) nounwind {
6 %cond = fcmp ole float 1.0, %x
7 %min1 = select i1 %cond, float 1.0, float %x
11 define float @fmin_ole_zero(float %x) nounwind {
12 ;CHECK: fmin_ole_zero:
14 %cond = fcmp ole float 0.0, %x
15 %min1 = select i1 %cond, float 0.0, float %x
19 define float @fmin_ult(float %x) nounwind {
22 %cond = fcmp ult float %x, 1.0
23 %min1 = select i1 %cond, float %x, float 1.0
27 define float @fmax_ogt(float %x) nounwind {
30 %cond = fcmp ogt float 1.0, %x
31 %max1 = select i1 %cond, float 1.0, float %x
35 define float @fmax_uge(float %x) nounwind {
38 %cond = fcmp uge float %x, 1.0
39 %max1 = select i1 %cond, float %x, float 1.0
43 define float @fmax_uge_zero(float %x) nounwind {
44 ;CHECK: fmax_uge_zero:
46 %cond = fcmp uge float %x, 0.0
47 %max1 = select i1 %cond, float %x, float 0.0
51 define float @fmax_olt_reverse(float %x) nounwind {
52 ;CHECK: fmax_olt_reverse:
54 %cond = fcmp olt float %x, 1.0
55 %max1 = select i1 %cond, float 1.0, float %x
59 define float @fmax_ule_reverse(float %x) nounwind {
60 ;CHECK: fmax_ule_reverse:
62 %cond = fcmp ult float 1.0, %x
63 %max1 = select i1 %cond, float %x, float 1.0
67 define float @fmin_oge_reverse(float %x) nounwind {
68 ;CHECK: fmin_oge_reverse:
70 %cond = fcmp oge float %x, 1.0
71 %min1 = select i1 %cond, float 1.0, float %x
75 define float @fmin_ugt_reverse(float %x) nounwind {
76 ;CHECK: fmin_ugt_reverse:
78 %cond = fcmp ugt float 1.0, %x
79 %min1 = select i1 %cond, float %x, float 1.0