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
4 @block = external global ptr ; <ptr> [#uses=1]
5 @last = external global i32 ; <ptr> [#uses=3]
7 define 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: jge LBB0_3
22 ; CHECK-NEXT: ## %bb.1: ## %label.0
23 ; CHECK-NEXT: cmpl $257, %eax ## imm = 0x101
24 ; CHECK-NEXT: je LBB0_3
25 ; CHECK-NEXT: ## %bb.2: ## %label.0.no_exit.1_crit_edge.exitStub
26 ; CHECK-NEXT: movb $1, %al
27 ; CHECK-NEXT: popl %esi
29 ; CHECK-NEXT: LBB0_3: ## %codeRepl5.exitStub
30 ; CHECK-NEXT: xorl %eax, %eax
31 ; CHECK-NEXT: popl %esi
35 label.0.no_exit.1_crit_edge.exitStub: ; preds = %label.0
37 codeRepl5.exitStub: ; preds = %label.0
39 label.0: ; preds = %newFuncRoot
40 %tmp.35 = load i32, ptr @last ; <i32> [#uses=1]
41 %inc.1 = add i32 %tmp.35, 1 ; <i32> [#uses=2]
42 store i32 %inc.1, ptr @last
43 %tmp.36 = load ptr, ptr @block ; <ptr> [#uses=1]
44 %tmp.38 = getelementptr i8, ptr %tmp.36, i32 %inc.1 ; <ptr> [#uses=1]
45 %tmp.40 = trunc i32 %tmp.21.reload to i8 ; <i8> [#uses=1]
46 store i8 %tmp.40, ptr %tmp.38
47 %tmp.910 = load i32, ptr @last ; <i32> [#uses=1]
48 %tmp.1111 = icmp slt i32 %tmp.910, %tmp.8 ; <i1> [#uses=1]
49 %tmp.1412 = icmp ne i32 %tmp.21.reload, 257 ; <i1> [#uses=1]
50 %tmp.1613 = and i1 %tmp.1111, %tmp.1412 ; <i1> [#uses=1]
51 br i1 %tmp.1613, label %label.0.no_exit.1_crit_edge.exitStub, label %codeRepl5.exitStub