blob: 6d9a3fa7b1064c6e9d150ff48e68c732de48e682 [file] [log] [blame]
Dan Gohmanfce288f2009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc64
2; RUN: llc < %s -march=ppc32
3; RUN: llc < %s
Chris Lattnerd4fca272006-12-07 22:36:14 +00004
Tanya Lattner6f729d62008-03-25 04:26:08 +00005@qsz.b = external global i1 ; <i1*> [#uses=1]
Chris Lattnerd4fca272006-12-07 22:36:14 +00006
Tanya Lattner6f729d62008-03-25 04:26:08 +00007define fastcc void @qst() {
Chris Lattnerd4fca272006-12-07 22:36:14 +00008entry:
Tanya Lattner6f729d62008-03-25 04:26:08 +00009 br i1 true, label %cond_next71, label %cond_true
10cond_true: ; preds = %entry
11 ret void
12cond_next71: ; preds = %entry
13 %tmp73.b = load i1* @qsz.b ; <i1> [#uses=1]
14 %ii.4.ph = select i1 %tmp73.b, i64 4, i64 0 ; <i64> [#uses=1]
15 br label %bb139
16bb82: ; preds = %bb139
17 ret void
18bb139: ; preds = %bb139, %cond_next71
19 %exitcond89 = icmp eq i64 0, %ii.4.ph ; <i1> [#uses=1]
20 br i1 %exitcond89, label %bb82, label %bb139
Chris Lattnerd4fca272006-12-07 22:36:14 +000021}
Tanya Lattner6f729d62008-03-25 04:26:08 +000022