1*f4a2713aSLionel Sambuc; RUN: llc %s -O0 -fast-isel -regalloc=fast -mcpu=i386 -o - 2*f4a2713aSLionel Sambuc; PR4767 3*f4a2713aSLionel Sambuc 4*f4a2713aSLionel Sambuctarget datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128" 5*f4a2713aSLionel Sambuctarget triple = "i386-apple-darwin10" 6*f4a2713aSLionel Sambuc 7*f4a2713aSLionel Sambucdefine void @fn(x86_fp80 %x) nounwind ssp { 8*f4a2713aSLionel Sambucentry: 9*f4a2713aSLionel Sambuc %x.addr = alloca x86_fp80 ; <x86_fp80*> [#uses=5] 10*f4a2713aSLionel Sambuc store x86_fp80 %x, x86_fp80* %x.addr 11*f4a2713aSLionel Sambuc br i1 false, label %cond.true, label %cond.false 12*f4a2713aSLionel Sambuc 13*f4a2713aSLionel Sambuccond.true: ; preds = %entry 14*f4a2713aSLionel Sambuc %tmp = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1] 15*f4a2713aSLionel Sambuc %tmp1 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1] 16*f4a2713aSLionel Sambuc %cmp = fcmp oeq x86_fp80 %tmp, %tmp1 ; <i1> [#uses=1] 17*f4a2713aSLionel Sambuc br i1 %cmp, label %if.then, label %if.end 18*f4a2713aSLionel Sambuc 19*f4a2713aSLionel Sambuccond.false: ; preds = %entry 20*f4a2713aSLionel Sambuc %tmp2 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1] 21*f4a2713aSLionel Sambuc %tmp3 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1] 22*f4a2713aSLionel Sambuc %cmp4 = fcmp une x86_fp80 %tmp2, %tmp3 ; <i1> [#uses=1] 23*f4a2713aSLionel Sambuc br i1 %cmp4, label %if.then, label %if.end 24*f4a2713aSLionel Sambuc 25*f4a2713aSLionel Sambucif.then: ; preds = %cond.false, %cond.true 26*f4a2713aSLionel Sambuc br label %if.end 27*f4a2713aSLionel Sambuc 28*f4a2713aSLionel Sambucif.end: ; preds = %if.then, %cond.false, %cond.true 29*f4a2713aSLionel Sambuc ret void 30*f4a2713aSLionel Sambuc} 31*f4a2713aSLionel Sambuc 32*f4a2713aSLionel Sambuc; PR10575 33*f4a2713aSLionel Sambuc; This produces a FP0 = IMPLICIT_DEF instruction. 34*f4a2713aSLionel Sambucdefine void @__m_rankmerge_MOD_dindexmerge_() nounwind { 35*f4a2713aSLionel Sambucentry: 36*f4a2713aSLionel Sambuc br label %"20" 37*f4a2713aSLionel Sambuc 38*f4a2713aSLionel Sambuc"20": ; preds = %"23", %entry 39*f4a2713aSLionel Sambuc %0 = phi double [ undef, %entry ], [ %0, %"23" ] 40*f4a2713aSLionel Sambuc %1 = phi double [ 0.000000e+00, %entry ], [ %2, %"23" ] 41*f4a2713aSLionel Sambuc br i1 undef, label %"21", label %"23" 42*f4a2713aSLionel Sambuc 43*f4a2713aSLionel Sambuc"21": ; preds = %"20" 44*f4a2713aSLionel Sambuc ret void 45*f4a2713aSLionel Sambuc 46*f4a2713aSLionel Sambuc"23": ; preds = %"20" 47*f4a2713aSLionel Sambuc %2 = select i1 undef, double %0, double %1 48*f4a2713aSLionel Sambuc br label %"20" 49*f4a2713aSLionel Sambuc} 50