blob: b99aa98fe9e87796f68184f97f09ff45736e61c6 [file] [log] [blame]
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00001; RUN: llvm-as < %s | llc
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002; PR748
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003@G = external global i16 ; <i16*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00005define void @OmNewObjHdr() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00007 br i1 false, label %endif.4, label %then.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
9then.0: ; preds = %entry
10 ret void
11
12endif.4: ; preds = %entry
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000013 br i1 false, label %else.3, label %shortcirc_next.3
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014
15shortcirc_next.3: ; preds = %endif.4
16 ret void
17
18else.3: ; preds = %endif.4
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000019 switch i32 0, label %endif.10 [
20 i32 5001, label %then.10
21 i32 -5008, label %then.10
Dan Gohmanf17a25c2007-07-18 16:29:46 +000022 ]
23
24then.10: ; preds = %else.3, %else.3
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000025 %tmp.112 = load i16* null ; <i16> [#uses=2]
26 %tmp.113 = load i16* @G ; <i16> [#uses=2]
27 %tmp.114 = icmp ugt i16 %tmp.112, %tmp.113 ; <i1> [#uses=1]
28 %tmp.120 = icmp ult i16 %tmp.112, %tmp.113 ; <i1> [#uses=1]
29 %bothcond = and i1 %tmp.114, %tmp.120 ; <i1> [#uses=1]
30 br i1 %bothcond, label %else.4, label %then.11
Dan Gohmanf17a25c2007-07-18 16:29:46 +000031
32then.11: ; preds = %then.10
33 ret void
34
35else.4: ; preds = %then.10
36 ret void
37
38endif.10: ; preds = %else.3
39 ret void
40}