blob: b45c2a44388e1974b65baf19ad9ffcc67175645a [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; This shouldn't crash
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00002; RUN: llvm-as < %s | llc -march=alpha
Dan Gohmanf17a25c2007-07-18 16:29:46 +00003
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00004@.str_4 = external global [44 x i8] ; <[44 x i8]*> [#uses=0]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00005
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00006declare void @printf(i32, ...)
Dan Gohmanf17a25c2007-07-18 16:29:46 +00007
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +00008define void @main() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009entry:
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000010 %tmp.11861 = icmp slt i64 0, 1 ; <i1> [#uses=1]
11 %tmp.19466 = icmp slt i64 0, 1 ; <i1> [#uses=1]
12 %tmp.21571 = icmp slt i64 0, 1 ; <i1> [#uses=1]
13 %tmp.36796 = icmp slt i64 0, 1 ; <i1> [#uses=1]
14 br i1 %tmp.11861, label %loopexit.2, label %no_exit.2
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000016no_exit.2: ; preds = %entry
17 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000018
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000019loopexit.2: ; preds = %entry
20 br i1 %tmp.19466, label %loopexit.3, label %no_exit.3.preheader
Dan Gohmanf17a25c2007-07-18 16:29:46 +000021
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000022no_exit.3.preheader: ; preds = %loopexit.2
23 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000024
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000025loopexit.3: ; preds = %loopexit.2
26 br i1 %tmp.21571, label %no_exit.6, label %no_exit.4
Dan Gohmanf17a25c2007-07-18 16:29:46 +000027
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000028no_exit.4: ; preds = %loopexit.3
29 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000030
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000031no_exit.6: ; preds = %no_exit.6, %loopexit.3
32 %tmp.30793 = icmp sgt i64 0, 0 ; <i1> [#uses=1]
33 br i1 %tmp.30793, label %loopexit.6, label %no_exit.6
Dan Gohmanf17a25c2007-07-18 16:29:46 +000034
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000035loopexit.6: ; preds = %no_exit.6
36 %Z.1 = select i1 %tmp.36796, double 1.000000e+00, double 0x3FEFFF7CEDE74EAE; <double> [#uses=2]
37 tail call void (i32, ...)* @printf( i32 0, i64 0, i64 0, i64 0, double 1.000000e+00, double 1.000000e+00, double %Z.1, double %Z.1 )
38 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000039}
Tanya Lattnerf28e0ce2008-02-19 01:41:04 +000040