blob: aff4edeba54be9fabf9bc683b02bae7715ee382a [file] [log] [blame]
Tanya Lattner6f729d62008-03-25 04:26:08 +00001; RUN: llvm-as < %s | llc
Chris Lattnerd039da92006-08-15 23:45:28 +00002
Tanya Lattner6f729d62008-03-25 04:26:08 +00003 %struct..0anon = type { i32 }
4 %struct.rtx_def = type { i16, i8, i8, [1 x %struct..0anon] }
Chris Lattnerd039da92006-08-15 23:45:28 +00005
Tanya Lattner6f729d62008-03-25 04:26:08 +00006define fastcc void @immed_double_const(i32 %i0, i32 %i1) {
Chris Lattnerd039da92006-08-15 23:45:28 +00007entry:
Tanya Lattner6f729d62008-03-25 04:26:08 +00008 %tmp1 = load i32* null ; <i32> [#uses=1]
9 switch i32 %tmp1, label %bb103 [
10 i32 1, label %bb
11 i32 3, label %bb
Chris Lattnerd039da92006-08-15 23:45:28 +000012 ]
Chris Lattnerd039da92006-08-15 23:45:28 +000013bb: ; preds = %entry, %entry
Tanya Lattner6f729d62008-03-25 04:26:08 +000014 %tmp14 = icmp sgt i32 0, 31 ; <i1> [#uses=1]
15 br i1 %tmp14, label %cond_next77, label %cond_next17
Chris Lattnerd039da92006-08-15 23:45:28 +000016cond_next17: ; preds = %bb
17 ret void
Chris Lattnerd039da92006-08-15 23:45:28 +000018cond_next77: ; preds = %bb
Tanya Lattner6f729d62008-03-25 04:26:08 +000019 %tmp79.not = icmp ne i32 %i1, 0 ; <i1> [#uses=1]
20 %tmp84 = icmp slt i32 %i0, 0 ; <i1> [#uses=2]
21 %bothcond1 = or i1 %tmp79.not, %tmp84 ; <i1> [#uses=1]
22 br i1 %bothcond1, label %bb88, label %bb99
Chris Lattnerd039da92006-08-15 23:45:28 +000023bb88: ; preds = %cond_next77
Tanya Lattner6f729d62008-03-25 04:26:08 +000024 %bothcond2 = and i1 false, %tmp84 ; <i1> [#uses=0]
Chris Lattnerd039da92006-08-15 23:45:28 +000025 ret void
Chris Lattnerd039da92006-08-15 23:45:28 +000026bb99: ; preds = %cond_next77
27 ret void
Chris Lattnerd039da92006-08-15 23:45:28 +000028bb103: ; preds = %entry
29 ret void
30}