blob: 6fb17991e7393d71cf712eb266cfdd7e4f7a4465 [file] [log] [blame]
Dan Gohmanda594cf2009-09-09 00:09:15 +00001; RUN: llc < %s
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00003define void @QRiterate(i32 %p.1, double %tmp.212) {
4entry:
5 %tmp.184 = icmp sgt i32 %p.1, 0 ; <i1> [#uses=1]
6 br i1 %tmp.184, label %shortcirc_next.1, label %shortcirc_done.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008shortcirc_next.1: ; preds = %shortcirc_done.1, %entry
9 %tmp.213 = fcmp une double %tmp.212, 0.000000e+00 ; <i1> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000010 br label %shortcirc_done.1
11
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000012shortcirc_done.1: ; preds = %shortcirc_next.1, %entry
13 %val.1 = phi i1 [ false, %entry ], [ %tmp.213, %shortcirc_next.1 ] ; <i1> [#uses=1]
14 br i1 %val.1, label %shortcirc_next.1, label %exit.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000016exit.1: ; preds = %shortcirc_done.1
17 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000019