1*cee313d2SEric Christopher; RUN: opt %s -codegenprepare -mattr=+soft-float -S | FileCheck %s -check-prefix=CHECK -check-prefix=SOFTFP 2*cee313d2SEric Christopher; RUN: opt %s -codegenprepare -mattr=-soft-float -S | FileCheck %s -check-prefix=CHECK -check-prefix=HARDFP 3*cee313d2SEric Christopher 4*cee313d2SEric Christophertarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 5*cee313d2SEric Christophertarget triple = "x86_64-unknown-linux-gnu" 6*cee313d2SEric Christopher 7*cee313d2SEric Christopher; CHECK-LABEL: @foo 8*cee313d2SEric Christopher; CHECK: entry: 9*cee313d2SEric Christopher; SOFTFP: fcmp 10*cee313d2SEric Christopher; HARDFP-NOT: fcmp 11*cee313d2SEric Christopher; CHECK: body: 12*cee313d2SEric Christopher; SOFTFP-NOT: fcmp 13*cee313d2SEric Christopher; HARDFP: fcmp 14*cee313d2SEric Christopherdefine void @foo(float %a, float %b) { 15*cee313d2SEric Christopherentry: 16*cee313d2SEric Christopher %c = fcmp oeq float %a, %b 17*cee313d2SEric Christopher br label %head 18*cee313d2SEric Christopherhead: 19*cee313d2SEric Christopher %IND = phi i32 [ 0, %entry ], [ %IND.new, %body1 ] 20*cee313d2SEric Christopher %CMP = icmp slt i32 %IND, 1250 21*cee313d2SEric Christopher br i1 %CMP, label %body, label %tail 22*cee313d2SEric Christopherbody: 23*cee313d2SEric Christopher br i1 %c, label %body1, label %tail 24*cee313d2SEric Christopherbody1: 25*cee313d2SEric Christopher %IND.new = add i32 %IND, 1 26*cee313d2SEric Christopher br label %head 27*cee313d2SEric Christophertail: 28*cee313d2SEric Christopher ret void 29*cee313d2SEric Christopher} 30