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_ult(float %x) nounwind {
14 %cond = fcmp ult float %x, 1.0
15 %min1 = select i1 %cond, float %x, float 1.0
19 define float @fmax_ogt(float %x) nounwind {
22 %cond = fcmp ogt float 1.0, %x
23 %max1 = select i1 %cond, float 1.0, float %x
27 define float @fmax_uge(float %x) nounwind {
30 %cond = fcmp uge float %x, 1.0
31 %max1 = select i1 %cond, float %x, float 1.0
35 define float @fmax_olt_reverse(float %x) nounwind {
36 ;CHECK: fmax_olt_reverse:
38 %cond = fcmp olt float %x, 1.0
39 %max1 = select i1 %cond, float 1.0, float %x
43 define float @fmax_ule_reverse(float %x) nounwind {
44 ;CHECK: fmax_ule_reverse:
46 %cond = fcmp ult float 1.0, %x
47 %max1 = select i1 %cond, float %x, float 1.0
51 define float @fmin_oge_reverse(float %x) nounwind {
52 ;CHECK: fmin_oge_reverse:
54 %cond = fcmp oge float %x, 1.0
55 %min1 = select i1 %cond, float 1.0, float %x
59 define float @fmin_ugt_reverse(float %x) nounwind {
60 ;CHECK: fmin_ugt_reverse:
62 %cond = fcmp ugt float 1.0, %x
63 %min1 = select i1 %cond, float %x, float 1.0