1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=i686-apple-darwin8 -relocation-model=static | FileCheck %s 3 4@block = external global ptr ; <ptr> [#uses=1] 5@last = external global i32 ; <ptr> [#uses=3] 6 7define i1 @loadAndRLEsource_no_exit_2E_1_label_2E_0(i32 %tmp.21.reload, i32 %tmp.8) { 8; CHECK-LABEL: loadAndRLEsource_no_exit_2E_1_label_2E_0: 9; CHECK: ## %bb.0: ## %newFuncRoot 10; CHECK-NEXT: pushl %esi 11; CHECK-NEXT: .cfi_def_cfa_offset 8 12; CHECK-NEXT: .cfi_offset %esi, -8 13; CHECK-NEXT: movl {{[0-9]+}}(%esp), %ecx 14; CHECK-NEXT: movl {{[0-9]+}}(%esp), %eax 15; CHECK-NEXT: movl _last, %edx 16; CHECK-NEXT: leal 1(%edx), %esi 17; CHECK-NEXT: movl %esi, _last 18; CHECK-NEXT: movl _block, %esi 19; CHECK-NEXT: movb %al, 1(%esi,%edx) 20; CHECK-NEXT: cmpl %ecx, _last 21; CHECK-NEXT: setl %cl 22; CHECK-NEXT: cmpl $257, %eax ## imm = 0x101 23; CHECK-NEXT: setne %al 24; CHECK-NEXT: testb %al, %cl 25; CHECK-NEXT: je LBB0_2 26; CHECK-NEXT: ## %bb.1: ## %label.0.no_exit.1_crit_edge.exitStub 27; CHECK-NEXT: movb $1, %al 28; CHECK-NEXT: popl %esi 29; CHECK-NEXT: retl 30; CHECK-NEXT: LBB0_2: ## %codeRepl5.exitStub 31; CHECK-NEXT: xorl %eax, %eax 32; CHECK-NEXT: popl %esi 33; CHECK-NEXT: retl 34newFuncRoot: 35 br label %label.0 36label.0.no_exit.1_crit_edge.exitStub: ; preds = %label.0 37 ret i1 true 38codeRepl5.exitStub: ; preds = %label.0 39 ret i1 false 40label.0: ; preds = %newFuncRoot 41 %tmp.35 = load i32, ptr @last ; <i32> [#uses=1] 42 %inc.1 = add i32 %tmp.35, 1 ; <i32> [#uses=2] 43 store i32 %inc.1, ptr @last 44 %tmp.36 = load ptr, ptr @block ; <ptr> [#uses=1] 45 %tmp.38 = getelementptr i8, ptr %tmp.36, i32 %inc.1 ; <ptr> [#uses=1] 46 %tmp.40 = trunc i32 %tmp.21.reload to i8 ; <i8> [#uses=1] 47 store i8 %tmp.40, ptr %tmp.38 48 %tmp.910 = load i32, ptr @last ; <i32> [#uses=1] 49 %tmp.1111 = icmp slt i32 %tmp.910, %tmp.8 ; <i1> [#uses=1] 50 %tmp.1412 = icmp ne i32 %tmp.21.reload, 257 ; <i1> [#uses=1] 51 %tmp.1613 = and i1 %tmp.1111, %tmp.1412 ; <i1> [#uses=1] 52 br i1 %tmp.1613, label %label.0.no_exit.1_crit_edge.exitStub, label %codeRepl5.exitStub 53} 54 55