blob: fb0cfb168d456f51af12141200ce7ab9b67c1da4 [file] [log] [blame]
Reid Spencerd7c2c2f2006-12-02 20:34:08 +00001; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
Tanya Lattnere7e3f2e2004-11-06 22:07:09 +00002
Chris Lattner1aed1c72004-02-27 17:26:08 +00003; %inc2 uses it's own value, but that's ok, as it's unreachable!
4
5void %test() {
6entry:
7 ret void
8
9no_exit.2: ; preds = %endif.6
10 %tmp.103 = setlt double 0x0, 0x0 ; <bool> [#uses=1]
11 br bool %tmp.103, label %endif.6, label %else.0
12
13else.0: ; preds = %no_exit.2
14 store ushort 0, ushort* null
15 br label %endif.6
16
17endif.6: ; preds = %no_exit.2, %else.0
18 %inc.2 = add int %inc.2, 1 ; <int> [#uses=2]
19 %tmp.96 = setlt int %inc.2, 0 ; <bool> [#uses=1]
20 br bool %tmp.96, label %no_exit.2, label %UnifiedReturnBlock1
21
22UnifiedReturnBlock1: ; preds = %endif.6
23 ret void
24}
25