blob: 8536dda0a9ba7d9bc41534c3278be8b47d388a22 [file] [log] [blame]
Dan Gohmanc8054d92009-09-09 00:09:15 +00001; RUN: llc < %s -march=ppc64
2; RUN: llc < %s -march=ppc32
3; RUN: llc < %s
Mehdi Aminid178f4f2015-09-16 05:34:32 +00004; REQUIRES: default_triple
Chris Lattnerf8433562006-12-07 22:36:14 +00005
Tanya Lattner8bf97c22008-03-25 04:26:08 +00006@qsz.b = external global i1 ; <i1*> [#uses=1]
Chris Lattnerf8433562006-12-07 22:36:14 +00007
Tanya Lattner8bf97c22008-03-25 04:26:08 +00008define fastcc void @qst() {
Chris Lattnerf8433562006-12-07 22:36:14 +00009entry:
Tanya Lattner8bf97c22008-03-25 04:26:08 +000010 br i1 true, label %cond_next71, label %cond_true
11cond_true: ; preds = %entry
12 ret void
13cond_next71: ; preds = %entry
David Blaikiea79ac142015-02-27 21:17:42 +000014 %tmp73.b = load i1, i1* @qsz.b ; <i1> [#uses=1]
Tanya Lattner8bf97c22008-03-25 04:26:08 +000015 %ii.4.ph = select i1 %tmp73.b, i64 4, i64 0 ; <i64> [#uses=1]
16 br label %bb139
17bb82: ; preds = %bb139
18 ret void
19bb139: ; preds = %bb139, %cond_next71
20 %exitcond89 = icmp eq i64 0, %ii.4.ph ; <i1> [#uses=1]
21 br i1 %exitcond89, label %bb82, label %bb139
Chris Lattnerf8433562006-12-07 22:36:14 +000022}
Tanya Lattner8bf97c22008-03-25 04:26:08 +000023