blob: bbadca5b861cc5eeb062909e8b6c35c09e142339 [file] [log] [blame]
Chris Lattnerba3598c2009-09-08 04:55:44 +00001; RUN: llc %s -O0 -fast-isel -regalloc=local -o -
Jakob Stoklund Olesen82b07dc2010-05-11 20:30:28 +00002; RUN: llc %s -O0 -fast-isel -regalloc=fast -o -
Chris Lattnerba3598c2009-09-08 04:55:44 +00003; PR4767
4
5target 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"
6target triple = "i386-apple-darwin10"
7
8define void @fn(x86_fp80 %x) nounwind ssp {
9entry:
10 %x.addr = alloca x86_fp80 ; <x86_fp80*> [#uses=5]
11 store x86_fp80 %x, x86_fp80* %x.addr
12 br i1 false, label %cond.true, label %cond.false
13
14cond.true: ; preds = %entry
15 %tmp = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1]
16 %tmp1 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1]
17 %cmp = fcmp oeq x86_fp80 %tmp, %tmp1 ; <i1> [#uses=1]
18 br i1 %cmp, label %if.then, label %if.end
19
20cond.false: ; preds = %entry
21 %tmp2 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1]
22 %tmp3 = load x86_fp80* %x.addr ; <x86_fp80> [#uses=1]
23 %cmp4 = fcmp une x86_fp80 %tmp2, %tmp3 ; <i1> [#uses=1]
24 br i1 %cmp4, label %if.then, label %if.end
25
26if.then: ; preds = %cond.false, %cond.true
27 br label %if.end
28
29if.end: ; preds = %if.then, %cond.false, %cond.true
30 ret void
31}