1*9880d681SAndroid Build Coastguard Worker; PR 1200 2*9880d681SAndroid Build Coastguard Worker; RUN: llc < %s -enable-tail-merge=0 | not grep jmp 3*9880d681SAndroid Build Coastguard Worker 4*9880d681SAndroid Build Coastguard Worker; ModuleID = '<stdin>' 5*9880d681SAndroid Build Coastguard Workertarget datalayout = "e-p:32:32" 6*9880d681SAndroid Build Coastguard Workertarget triple = "i686-apple-darwin8" 7*9880d681SAndroid Build Coastguard Worker %struct.FILE = type { i8*, i32, i32, i16, i16, %struct.__sbuf, i32, i8*, i32 (i8*)*, i32 (i8*, i8*, i32)*, i64 (i8*, i64, i32)*, i32 (i8*, i8*, i32)*, %struct.__sbuf, %struct.__sFILEX*, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 } 8*9880d681SAndroid Build Coastguard Worker %struct.Index_Map = type { i32, %struct.item_set** } 9*9880d681SAndroid Build Coastguard Worker %struct.Item = type { [4 x i16], %struct.rule* } 10*9880d681SAndroid Build Coastguard Worker %struct.__sFILEX = type opaque 11*9880d681SAndroid Build Coastguard Worker %struct.__sbuf = type { i8*, i32 } 12*9880d681SAndroid Build Coastguard Worker %struct.dimension = type { i16*, %struct.Index_Map, %struct.mapping*, i32, %struct.plankMap* } 13*9880d681SAndroid Build Coastguard Worker %struct.item_set = type { i32, i32, %struct.operator*, [2 x %struct.item_set*], %struct.item_set*, i16*, %struct.Item*, %struct.Item* } 14*9880d681SAndroid Build Coastguard Worker %struct.list = type { i8*, %struct.list* } 15*9880d681SAndroid Build Coastguard Worker %struct.mapping = type { %struct.list**, i32, i32, i32, %struct.item_set** } 16*9880d681SAndroid Build Coastguard Worker %struct.nonterminal = type { i8*, i32, i32, i32, %struct.plankMap*, %struct.rule* } 17*9880d681SAndroid Build Coastguard Worker %struct.operator = type { i8*, i8, i32, i32, i32, i32, %struct.table* } 18*9880d681SAndroid Build Coastguard Worker %struct.pattern = type { %struct.nonterminal*, %struct.operator*, [2 x %struct.nonterminal*] } 19*9880d681SAndroid Build Coastguard Worker %struct.plank = type { i8*, %struct.list*, i32 } 20*9880d681SAndroid Build Coastguard Worker %struct.plankMap = type { %struct.list*, i32, %struct.stateMap* } 21*9880d681SAndroid Build Coastguard Worker %struct.rule = type { [4 x i16], i32, i32, i32, %struct.nonterminal*, %struct.pattern*, i8 } 22*9880d681SAndroid Build Coastguard Worker %struct.stateMap = type { i8*, %struct.plank*, i32, i16* } 23*9880d681SAndroid Build Coastguard Worker %struct.table = type { %struct.operator*, %struct.list*, i16*, [2 x %struct.dimension*], %struct.item_set** } 24*9880d681SAndroid Build Coastguard Worker@outfile = external global %struct.FILE* ; <%struct.FILE**> [#uses=1] 25*9880d681SAndroid Build Coastguard Worker@str1 = external global [11 x i8] ; <[11 x i8]*> [#uses=1] 26*9880d681SAndroid Build Coastguard Worker 27*9880d681SAndroid Build Coastguard Workerdeclare i32 @fprintf(%struct.FILE*, i8*, ...) 28*9880d681SAndroid Build Coastguard Worker 29*9880d681SAndroid Build Coastguard Workerdefine i16 @main_bb_2E_i9_2E_i_2E_i932_2E_ce(%struct.list* %l_addr.01.0.i2.i.i929, %struct.operator** %tmp66.i62.i.out) { 30*9880d681SAndroid Build Coastguard WorkernewFuncRoot: 31*9880d681SAndroid Build Coastguard Worker br label %bb.i9.i.i932.ce 32*9880d681SAndroid Build Coastguard Worker 33*9880d681SAndroid Build Coastguard WorkerNewDefault: ; preds = %LeafBlock, %LeafBlock1, %LeafBlock2, %LeafBlock3 34*9880d681SAndroid Build Coastguard Worker br label %bb36.i.i.exitStub 35*9880d681SAndroid Build Coastguard Worker 36*9880d681SAndroid Build Coastguard Workerbb36.i.i.exitStub: ; preds = %NewDefault 37*9880d681SAndroid Build Coastguard Worker store %struct.operator* %tmp66.i62.i, %struct.operator** %tmp66.i62.i.out 38*9880d681SAndroid Build Coastguard Worker ret i16 0 39*9880d681SAndroid Build Coastguard Worker 40*9880d681SAndroid Build Coastguard Workerbb.i14.i.exitStub: ; preds = %LeafBlock 41*9880d681SAndroid Build Coastguard Worker store %struct.operator* %tmp66.i62.i, %struct.operator** %tmp66.i62.i.out 42*9880d681SAndroid Build Coastguard Worker ret i16 1 43*9880d681SAndroid Build Coastguard Worker 44*9880d681SAndroid Build Coastguard Workerbb12.i.i935.exitStub: ; preds = %LeafBlock1 45*9880d681SAndroid Build Coastguard Worker store %struct.operator* %tmp66.i62.i, %struct.operator** %tmp66.i62.i.out 46*9880d681SAndroid Build Coastguard Worker ret i16 2 47*9880d681SAndroid Build Coastguard Worker 48*9880d681SAndroid Build Coastguard Workerbb20.i.i937.exitStub: ; preds = %LeafBlock2 49*9880d681SAndroid Build Coastguard Worker store %struct.operator* %tmp66.i62.i, %struct.operator** %tmp66.i62.i.out 50*9880d681SAndroid Build Coastguard Worker ret i16 3 51*9880d681SAndroid Build Coastguard Worker 52*9880d681SAndroid Build Coastguard Workerbb28.i.i938.exitStub: ; preds = %LeafBlock3 53*9880d681SAndroid Build Coastguard Worker store %struct.operator* %tmp66.i62.i, %struct.operator** %tmp66.i62.i.out 54*9880d681SAndroid Build Coastguard Worker ret i16 4 55*9880d681SAndroid Build Coastguard Worker 56*9880d681SAndroid Build Coastguard Workerbb.i9.i.i932.ce: ; preds = %newFuncRoot 57*9880d681SAndroid Build Coastguard Worker %tmp1.i3.i.i930 = getelementptr %struct.list, %struct.list* %l_addr.01.0.i2.i.i929, i32 0, i32 0 ; <i8**> [#uses=1] 58*9880d681SAndroid Build Coastguard Worker %tmp2.i4.i.i931 = load i8*, i8** %tmp1.i3.i.i930 ; <i8*> [#uses=1] 59*9880d681SAndroid Build Coastguard Worker %tmp66.i62.i = bitcast i8* %tmp2.i4.i.i931 to %struct.operator* ; <%struct.operator*> [#uses=7] 60*9880d681SAndroid Build Coastguard Worker %tmp1.i6.i = getelementptr %struct.operator, %struct.operator* %tmp66.i62.i, i32 0, i32 2 ; <i32*> [#uses=1] 61*9880d681SAndroid Build Coastguard Worker %tmp2.i7.i = load i32, i32* %tmp1.i6.i ; <i32> [#uses=1] 62*9880d681SAndroid Build Coastguard Worker %tmp3.i8.i = load %struct.FILE*, %struct.FILE** @outfile ; <%struct.FILE*> [#uses=1] 63*9880d681SAndroid Build Coastguard Worker %tmp5.i9.i = call i32 (%struct.FILE*, i8*, ...) @fprintf( %struct.FILE* %tmp3.i8.i, i8* getelementptr ([11 x i8], [11 x i8]* @str1, i32 0, i32 0), i32 %tmp2.i7.i ) ; <i32> [#uses=0] 64*9880d681SAndroid Build Coastguard Worker %tmp7.i10.i = getelementptr %struct.operator, %struct.operator* %tmp66.i62.i, i32 0, i32 5 ; <i32*> [#uses=1] 65*9880d681SAndroid Build Coastguard Worker %tmp8.i11.i = load i32, i32* %tmp7.i10.i ; <i32> [#uses=7] 66*9880d681SAndroid Build Coastguard Worker br label %NodeBlock5 67*9880d681SAndroid Build Coastguard Worker 68*9880d681SAndroid Build Coastguard WorkerNodeBlock5: ; preds = %bb.i9.i.i932.ce 69*9880d681SAndroid Build Coastguard Worker icmp slt i32 %tmp8.i11.i, 1 ; <i1>:0 [#uses=1] 70*9880d681SAndroid Build Coastguard Worker br i1 %0, label %NodeBlock, label %NodeBlock4 71*9880d681SAndroid Build Coastguard Worker 72*9880d681SAndroid Build Coastguard WorkerNodeBlock4: ; preds = %NodeBlock5 73*9880d681SAndroid Build Coastguard Worker icmp slt i32 %tmp8.i11.i, 2 ; <i1>:1 [#uses=1] 74*9880d681SAndroid Build Coastguard Worker br i1 %1, label %LeafBlock2, label %LeafBlock3 75*9880d681SAndroid Build Coastguard Worker 76*9880d681SAndroid Build Coastguard WorkerLeafBlock3: ; preds = %NodeBlock4 77*9880d681SAndroid Build Coastguard Worker icmp eq i32 %tmp8.i11.i, 2 ; <i1>:2 [#uses=1] 78*9880d681SAndroid Build Coastguard Worker br i1 %2, label %bb28.i.i938.exitStub, label %NewDefault 79*9880d681SAndroid Build Coastguard Worker 80*9880d681SAndroid Build Coastguard WorkerLeafBlock2: ; preds = %NodeBlock4 81*9880d681SAndroid Build Coastguard Worker icmp eq i32 %tmp8.i11.i, 1 ; <i1>:3 [#uses=1] 82*9880d681SAndroid Build Coastguard Worker br i1 %3, label %bb20.i.i937.exitStub, label %NewDefault 83*9880d681SAndroid Build Coastguard Worker 84*9880d681SAndroid Build Coastguard WorkerNodeBlock: ; preds = %NodeBlock5 85*9880d681SAndroid Build Coastguard Worker icmp slt i32 %tmp8.i11.i, 0 ; <i1>:4 [#uses=1] 86*9880d681SAndroid Build Coastguard Worker br i1 %4, label %LeafBlock, label %LeafBlock1 87*9880d681SAndroid Build Coastguard Worker 88*9880d681SAndroid Build Coastguard WorkerLeafBlock1: ; preds = %NodeBlock 89*9880d681SAndroid Build Coastguard Worker icmp eq i32 %tmp8.i11.i, 0 ; <i1>:5 [#uses=1] 90*9880d681SAndroid Build Coastguard Worker br i1 %5, label %bb12.i.i935.exitStub, label %NewDefault 91*9880d681SAndroid Build Coastguard Worker 92*9880d681SAndroid Build Coastguard WorkerLeafBlock: ; preds = %NodeBlock 93*9880d681SAndroid Build Coastguard Worker icmp eq i32 %tmp8.i11.i, -1 ; <i1>:6 [#uses=1] 94*9880d681SAndroid Build Coastguard Worker br i1 %6, label %bb.i14.i.exitStub, label %NewDefault 95*9880d681SAndroid Build Coastguard Worker} 96