blob: 2a424be94ec37625f48f34e379efaf4e70f54133 [file] [log] [blame]
Reid Spencer69ccadd2006-12-02 04:23:10 +00001; RUN: llvm-upgrade < %s | llvm-as | llc
Chris Lattnerb9098652006-04-27 05:00:43 +00002; PR748
3
4%G = external global ushort ; <ushort*> [#uses=1]
5
6implementation ; Functions:
7
8void %OmNewObjHdr() {
9entry:
10 br bool false, label %endif.4, label %then.0
11
12then.0: ; preds = %entry
13 ret void
14
15endif.4: ; preds = %entry
16 br bool false, label %else.3, label %shortcirc_next.3
17
18shortcirc_next.3: ; preds = %endif.4
19 ret void
20
21else.3: ; preds = %endif.4
22 switch int 0, label %endif.10 [
23 int 5001, label %then.10
24 int -5008, label %then.10
25 ]
26
27then.10: ; preds = %else.3, %else.3
28 %tmp.112 = load ushort* null ; <ushort> [#uses=2]
29 %tmp.113 = load ushort* %G ; <ushort> [#uses=2]
30 %tmp.114 = setgt ushort %tmp.112, %tmp.113 ; <bool> [#uses=1]
31 %tmp.120 = setlt ushort %tmp.112, %tmp.113 ; <bool> [#uses=1]
32 %bothcond = and bool %tmp.114, %tmp.120 ; <bool> [#uses=1]
33 br bool %bothcond, label %else.4, label %then.11
34
35then.11: ; preds = %then.10
36 ret void
37
38else.4: ; preds = %then.10
39 ret void
40
41endif.10: ; preds = %else.3
42 ret void
43}