1 ; RUN: llc < %s -march=x86 -mattr=sse4.1 | FileCheck %s
2 ; <rdar://problem/7859988>
4 ; Make sure we don't generate more jumps than we need to. We used to generate
15 ; Now we generate this:
23 ; CHECK: jne [[LABEL:.*]]
24 ; CHECK-NEXT: jp [[LABEL]]
27 define float @func(float %x, float %y) nounwind readnone optsize ssp {
29 %0 = fpext float %x to double
30 %1 = fpext float %y to double
31 %2 = fmul double %0, %1
32 %3 = fcmp une double %2, 0.000000e+00
33 br i1 %3, label %bb2, label %bb1
36 %4 = fadd double %2, -1.000000e+00
40 %.0.in = phi double [ %4, %bb1 ], [ %2, %entry ]
41 %.0 = fptrunc double %.0.in to float