brintos

brintos / llvm-project-archived public Read only

0
0
Text · 6.2 KiB · 206574e Raw
169 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -enable-tail-merge=0 | FileCheck %s3; PR 12004; ModuleID = '<stdin>'5target datalayout = "e-p:32:32"6target triple = "i686-apple-darwin8"7	%struct.FILE = type { ptr, i32, i32, i16, i16, %struct.__sbuf, i32, ptr, ptr, ptr, ptr, ptr, %struct.__sbuf, ptr, i32, [3 x i8], [1 x i8], %struct.__sbuf, i32, i64 }8	%struct.Index_Map = type { i32, ptr }9	%struct.Item = type { [4 x i16], ptr }10	%struct.__sFILEX = type opaque11	%struct.__sbuf = type { ptr, i32 }12	%struct.dimension = type { ptr, %struct.Index_Map, ptr, i32, ptr }13	%struct.item_set = type { i32, i32, ptr, [2 x ptr], ptr, ptr, ptr, ptr }14	%struct.list = type { ptr, ptr }15	%struct.mapping = type { ptr, i32, i32, i32, ptr }16	%struct.nonterminal = type { ptr, i32, i32, i32, ptr, ptr }17	%struct.operator = type { ptr, i8, i32, i32, i32, i32, ptr }18	%struct.pattern = type { ptr, ptr, [2 x ptr] }19	%struct.plank = type { ptr, ptr, i32 }20	%struct.plankMap = type { ptr, i32, ptr }21	%struct.rule = type { [4 x i16], i32, i32, i32, ptr, ptr, i8 }22	%struct.stateMap = type { ptr, ptr, i32, ptr }23	%struct.table = type { ptr, ptr, ptr, [2 x ptr], ptr }24@outfile = external global ptr		; <ptr> [#uses=1]25@str1 = external global [11 x i8]		; <ptr> [#uses=1]26 27declare i32 @fprintf(ptr, ptr, ...)28 29define i16 @main_bb_2E_i9_2E_i_2E_i932_2E_ce(ptr %l_addr.01.0.i2.i.i929, ptr %tmp66.i62.i.out) {30; CHECK-LABEL: main_bb_2E_i9_2E_i_2E_i932_2E_ce:31; CHECK:       ## %bb.0: ## %newFuncRoot32; CHECK-NEXT:    pushl %edi33; CHECK-NEXT:    .cfi_def_cfa_offset 834; CHECK-NEXT:    pushl %esi35; CHECK-NEXT:    .cfi_def_cfa_offset 1236; CHECK-NEXT:    subl $20, %esp37; CHECK-NEXT:    .cfi_def_cfa_offset 3238; CHECK-NEXT:    .cfi_offset %esi, -1239; CHECK-NEXT:    .cfi_offset %edi, -840; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %esi41; CHECK-NEXT:    movl {{[0-9]+}}(%esp), %eax42; CHECK-NEXT:    movl (%eax), %edi43; CHECK-NEXT:    movl 8(%edi), %eax44; CHECK-NEXT:    movl L_outfile$non_lazy_ptr, %ecx45; CHECK-NEXT:    movl (%ecx), %ecx46; CHECK-NEXT:    movl %eax, {{[0-9]+}}(%esp)47; CHECK-NEXT:    movl L_str1$non_lazy_ptr, %eax48; CHECK-NEXT:    movl %eax, {{[0-9]+}}(%esp)49; CHECK-NEXT:    movl %ecx, (%esp)50; CHECK-NEXT:    calll _fprintf51; CHECK-NEXT:    movl 20(%edi), %eax52; CHECK-NEXT:    testl %eax, %eax53; CHECK-NEXT:    jle LBB0_654; CHECK-NEXT:  ## %bb.1: ## %NodeBlock455; CHECK-NEXT:    cmpl $2, %eax56; CHECK-NEXT:    jge LBB0_257; CHECK-NEXT:  ## %bb.4: ## %LeafBlock258; CHECK-NEXT:    cmpl $1, %eax59; CHECK-NEXT:    jne LBB0_360; CHECK-NEXT:  ## %bb.5: ## %bb20.i.i937.exitStub61; CHECK-NEXT:    movl %edi, (%esi)62; CHECK-NEXT:    movw $3, %ax63; CHECK-NEXT:    addl $20, %esp64; CHECK-NEXT:    popl %esi65; CHECK-NEXT:    popl %edi66; CHECK-NEXT:    retl67; CHECK-NEXT:  LBB0_6: ## %NodeBlock68; CHECK-NEXT:    js LBB0_969; CHECK-NEXT:  ## %bb.7: ## %LeafBlock170; CHECK-NEXT:    jne LBB0_371; CHECK-NEXT:  ## %bb.8: ## %bb12.i.i935.exitStub72; CHECK-NEXT:    movl %edi, (%esi)73; CHECK-NEXT:    movw $2, %ax74; CHECK-NEXT:    addl $20, %esp75; CHECK-NEXT:    popl %esi76; CHECK-NEXT:    popl %edi77; CHECK-NEXT:    retl78; CHECK-NEXT:  LBB0_2: ## %LeafBlock379; CHECK-NEXT:    jne LBB0_380; CHECK-NEXT:  ## %bb.11: ## %bb28.i.i938.exitStub81; CHECK-NEXT:    movl %edi, (%esi)82; CHECK-NEXT:    movw $4, %ax83; CHECK-NEXT:    addl $20, %esp84; CHECK-NEXT:    popl %esi85; CHECK-NEXT:    popl %edi86; CHECK-NEXT:    retl87; CHECK-NEXT:  LBB0_9: ## %LeafBlock88; CHECK-NEXT:    cmpl $-1, %eax89; CHECK-NEXT:    je LBB0_1090; CHECK-NEXT:  LBB0_3: ## %NewDefault91; CHECK-NEXT:    movl %edi, (%esi)92; CHECK-NEXT:    xorl %eax, %eax93; CHECK-NEXT:    addl $20, %esp94; CHECK-NEXT:    popl %esi95; CHECK-NEXT:    popl %edi96; CHECK-NEXT:    retl97; CHECK-NEXT:  LBB0_10: ## %bb.i14.i.exitStub98; CHECK-NEXT:    movl %edi, (%esi)99; CHECK-NEXT:    movw $1, %ax100; CHECK-NEXT:    addl $20, %esp101; CHECK-NEXT:    popl %esi102; CHECK-NEXT:    popl %edi103; CHECK-NEXT:    retl104newFuncRoot:105	br label %bb.i9.i.i932.ce106 107NewDefault:		; preds = %LeafBlock, %LeafBlock1, %LeafBlock2, %LeafBlock3108	br label %bb36.i.i.exitStub109 110bb36.i.i.exitStub:		; preds = %NewDefault111	store ptr %tmp2.i4.i.i931, ptr %tmp66.i62.i.out112	ret i16 0113 114bb.i14.i.exitStub:		; preds = %LeafBlock115	store ptr %tmp2.i4.i.i931, ptr %tmp66.i62.i.out116	ret i16 1117 118bb12.i.i935.exitStub:		; preds = %LeafBlock1119	store ptr %tmp2.i4.i.i931, ptr %tmp66.i62.i.out120	ret i16 2121 122bb20.i.i937.exitStub:		; preds = %LeafBlock2123	store ptr %tmp2.i4.i.i931, ptr %tmp66.i62.i.out124	ret i16 3125 126bb28.i.i938.exitStub:		; preds = %LeafBlock3127	store ptr %tmp2.i4.i.i931, ptr %tmp66.i62.i.out128	ret i16 4129 130bb.i9.i.i932.ce:		; preds = %newFuncRoot131	%tmp1.i3.i.i930 = getelementptr %struct.list, ptr %l_addr.01.0.i2.i.i929, i32 0, i32 0		; <ptr> [#uses=1]132	%tmp2.i4.i.i931 = load ptr, ptr %tmp1.i3.i.i930		; <ptr> [#uses=1]133	%tmp1.i6.i = getelementptr %struct.operator, ptr %tmp2.i4.i.i931, i32 0, i32 2		; <ptr> [#uses=1]134	%tmp2.i7.i = load i32, ptr %tmp1.i6.i		; <i32> [#uses=1]135	%tmp3.i8.i = load ptr, ptr @outfile		; <ptr> [#uses=1]136	%tmp5.i9.i = call i32 (ptr, ptr, ...) @fprintf( ptr %tmp3.i8.i, ptr @str1, i32 %tmp2.i7.i )		; <i32> [#uses=0]137	%tmp7.i10.i = getelementptr %struct.operator, ptr %tmp2.i4.i.i931, i32 0, i32 5		; <ptr> [#uses=1]138	%tmp8.i11.i = load i32, ptr %tmp7.i10.i		; <i32> [#uses=7]139	br label %NodeBlock5140 141NodeBlock5:		; preds = %bb.i9.i.i932.ce142	icmp slt i32 %tmp8.i11.i, 1		; <i1>:0 [#uses=1]143	br i1 %0, label %NodeBlock, label %NodeBlock4144 145NodeBlock4:		; preds = %NodeBlock5146	icmp slt i32 %tmp8.i11.i, 2		; <i1>:1 [#uses=1]147	br i1 %1, label %LeafBlock2, label %LeafBlock3148 149LeafBlock3:		; preds = %NodeBlock4150	icmp eq i32 %tmp8.i11.i, 2		; <i1>:2 [#uses=1]151	br i1 %2, label %bb28.i.i938.exitStub, label %NewDefault152 153LeafBlock2:		; preds = %NodeBlock4154	icmp eq i32 %tmp8.i11.i, 1		; <i1>:3 [#uses=1]155	br i1 %3, label %bb20.i.i937.exitStub, label %NewDefault156 157NodeBlock:		; preds = %NodeBlock5158	icmp slt i32 %tmp8.i11.i, 0		; <i1>:4 [#uses=1]159	br i1 %4, label %LeafBlock, label %LeafBlock1160 161LeafBlock1:		; preds = %NodeBlock162	icmp eq i32 %tmp8.i11.i, 0		; <i1>:5 [#uses=1]163	br i1 %5, label %bb12.i.i935.exitStub, label %NewDefault164 165LeafBlock:		; preds = %NodeBlock166	icmp eq i32 %tmp8.i11.i, -1		; <i1>:6 [#uses=1]167	br i1 %6, label %bb.i14.i.exitStub, label %NewDefault168}169