New test case.
[oota-llvm.git] / test / CodeGen / ARM / 2007-03-07-CombinerCrash.ll
1 ; RUN: llvm-as < %s | llc -mtriple=arm-apple-darwin -mattr=+v6,+vfp2
2
3 define fastcc i8* @read_sleb128(i8* %p, i32* %val) {
4         br label %bb
5
6 bb:
7         %p_addr.0 = getelementptr i8* %p, i32 0
8         %tmp2 = load i8* %p_addr.0
9         %tmp4.rec = add i32 0, 1
10         %tmp4 = getelementptr i8* %p, i32 %tmp4.rec
11         %tmp56 = zext i8 %tmp2 to i32
12         %tmp7 = and i32 %tmp56, 127
13         %tmp9 = shl i32 %tmp7, 0
14         %tmp11 = or i32 %tmp9, 0
15         icmp slt i8 %tmp2, 0
16         br i1 %0, label %bb, label %cond_next28
17
18 cond_next28:
19         store i32 %tmp11, i32* %val
20         ret i8* %tmp4
21 }