Chris Lattner | ba3598c | 2009-09-08 04:55:44 +0000 | [diff] [blame] | 1 | ; RUN: llc %s -O0 -fast-isel -regalloc=local -o - |
Jakob Stoklund Olesen | 82b07dc | 2010-05-11 20:30:28 +0000 | [diff] [blame^] | 2 | ; RUN: llc %s -O0 -fast-isel -regalloc=fast -o - |
Chris Lattner | ba3598c | 2009-09-08 04:55:44 +0000 | [diff] [blame] | 3 | ; PR4767 |
| 4 | |
| 5 | target 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" |
| 6 | target triple = "i386-apple-darwin10" |
| 7 | |
| 8 | define void @fn(x86_fp80 %x) nounwind ssp { |
| 9 | entry: |
| 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 | |
| 14 | cond.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 | |
| 20 | cond.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 | |
| 26 | if.then: ; preds = %cond.false, %cond.true |
| 27 | br label %if.end |
| 28 | |
| 29 | if.end: ; preds = %if.then, %cond.false, %cond.true |
| 30 | ret void |
| 31 | } |