llvm.org GIT mirror llvm / 14fc235
new testcase that crashes llc git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37068 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 25 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-as < %s | llc -march=ppc32
1 target datalayout = "E-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
2 target triple = "powerpc-apple-darwin8.8.0"
3 %struct..0anon = type { i32 }
4 %struct.A = type { %struct.anon }
5 %struct.anon = type <{ }>
6
7 define void @bork(%struct.A* %In0P) {
8 entry:
9 %tmp56 = bitcast %struct.A* %In0P to float* ; [#uses=1]
10 br label %bb
11
12 bb: ; preds = %bb, %entry
13 %i.035.0 = phi i32 [ 0, %entry ], [ %indvar.next, %bb ] ; [#uses=2]
14 %tmp8 = getelementptr float* %tmp56, i32 %i.035.0 ; [#uses=2]
15 %tmp101112 = bitcast float* %tmp8 to i8* ; [#uses=1]
16 %tmp1617 = bitcast float* %tmp8 to i32* ; [#uses=1]
17 %tmp21 = tail call i32 asm "lwbrx $0, $2, $1", "=r,r,bO,*m"( i8* %tmp101112, i32 0, i32* %tmp1617 ) ; [#uses=0]
18 %indvar.next = add i32 %i.035.0, 1 ; [#uses=2]
19 %exitcond = icmp eq i32 %indvar.next, 4 ; [#uses=1]
20 br i1 %exitcond, label %return, label %bb
21
22 return: ; preds = %bb
23 ret void
24 }