40 lines · plain
1; RUN: llc < %s -mtriple=i386-linux-gnu -mattr=+sse2 -o - | FileCheck %s 2; RUN: llc < %s -mtriple=x86_64-linux-gnu -o - | FileCheck %s 3 4; This test checks that only a single jae gets generated in the final code5; for lowering the CMOV pseudos that get created for this IR.6; CHECK-LABEL: foo1:7; CHECK: jae8; CHECK-NOT: jae9define double @foo1(float %p1, double %p2, double %p3) nounwind {10entry:11 %c1 = fcmp oge float %p1, 0.000000e+0012 %d0 = fadd double %p2, 1.25e013 %d1 = fadd double %p3, 1.25e014 %d2 = select i1 %c1, double %d0, double %d115 %d3 = select i1 %c1, double %d0, double %p216 %d4 = select i1 %c1, double %p3, double %d117 %d5 = fsub double %d2, %d318 %d6 = fadd double %d5, %d419 ret double %d620}21 22; This test checks that only a single jae gets generated in the final code23; for lowering the CMOV pseudos that get created for this IR.24; CHECK-LABEL: foo2:25; CHECK: jae26; CHECK-NOT: jae27define float @foo2(float %p1, float %p2, float %p3) nounwind {28entry:29 %c1 = fcmp oge float %p1, 0.000000e+0030 %d0 = fadd float %p2, 1.25e031 %d1 = fadd float %p3, 1.25e032 %d2 = select i1 %c1, float %d0, float %d133 %d3 = select i1 %c1, float %d1, float %p234 %d4 = select i1 %c1, float %d0, float %p335 %d5 = fsub float %d2, %d336 %d6 = fadd float %d5, %d437 ret float %d638}39 40