83 lines · plain
1; RUN: llc -mtriple=arm-eabi -mcpu=swift %s -o - | FileCheck %s2; RUN: llc -mtriple=arm-eabi -mcpu=cortex-a8 -mattr=-neon %s -o -3 4define float @fmin_ole(float %x) nounwind {5;CHECK-LABEL: fmin_ole:6;CHECK-NOT: vmin.f327 %cond = fcmp ole float 1.0, %x8 %min1 = select i1 %cond, float 1.0, float %x9 ret float %min110}11 12define float @fmin_ole_zero(float %x) nounwind {13;CHECK-LABEL: fmin_ole_zero:14;CHECK-NOT: vmin.f3215 %cond = fcmp ole float 0.0, %x16 %min1 = select i1 %cond, float 0.0, float %x17 ret float %min118}19 20define float @fmin_ult(float %x) nounwind {21;CHECK-LABEL: fmin_ult:22;CHECK-NOT: vmin.f3223 %cond = fcmp ult float %x, 1.024 %min1 = select i1 %cond, float %x, float 1.025 ret float %min126}27 28define float @fmax_ogt(float %x) nounwind {29;CHECK-LABEL: fmax_ogt:30;CHECK-NOT: vmax.f3231 %cond = fcmp ogt float 1.0, %x32 %max1 = select i1 %cond, float 1.0, float %x33 ret float %max134}35 36define float @fmax_uge(float %x) nounwind {37;CHECK-LABEL: fmax_uge:38;CHECK-NOT: vmax.f3239 %cond = fcmp uge float %x, 1.040 %max1 = select i1 %cond, float %x, float 1.041 ret float %max142}43 44define float @fmax_uge_zero(float %x) nounwind {45;CHECK-LABEL: fmax_uge_zero:46;CHECK-NOT: vmax.f3247 %cond = fcmp uge float %x, 0.048 %max1 = select i1 %cond, float %x, float 0.049 ret float %max150}51 52define float @fmax_olt_reverse(float %x) nounwind {53;CHECK-LABEL: fmax_olt_reverse:54;CHECK-NOT: vmax.f3255 %cond = fcmp olt float %x, 1.056 %max1 = select i1 %cond, float 1.0, float %x57 ret float %max158}59 60define float @fmax_ule_reverse(float %x) nounwind {61;CHECK-LABEL: fmax_ule_reverse:62;CHECK-NOT: vmax.f3263 %cond = fcmp ult float 1.0, %x64 %max1 = select i1 %cond, float %x, float 1.065 ret float %max166}67 68define float @fmin_oge_reverse(float %x) nounwind {69;CHECK-LABEL: fmin_oge_reverse:70;CHECK-NOT: vmin.f3271 %cond = fcmp oge float %x, 1.072 %min1 = select i1 %cond, float 1.0, float %x73 ret float %min174}75 76define float @fmin_ugt_reverse(float %x) nounwind {77;CHECK-LABEL: fmin_ugt_reverse:78;CHECK-NOT: vmin.f3279 %cond = fcmp ugt float 1.0, %x80 %min1 = select i1 %cond, float %x, float 1.081 ret float %min182}83