fb0cfb168d456f51af12141200ce7ab9b67c1da4
[oota-llvm.git] / test / Assembler / 2004-02-27-SelfUseAssertError.ll
1 ; RUN: llvm-upgrade < %s | llvm-as -o /dev/null -f
2
3 ; %inc2 uses it's own value, but that's ok, as it's unreachable!
4
5 void %test() {
6 entry:
7         ret void
8
9 no_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
13 else.0:         ; preds = %no_exit.2
14         store ushort 0, ushort* null
15         br label %endif.6
16
17 endif.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
22 UnifiedReturnBlock1:            ; preds = %endif.6
23         ret void
24 }
25