1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-- | FileCheck %s
4 define void @BZ2_bzDecompress_bb5_2E_outer_bb35_2E_i_bb54_2E_i(ptr, i32 %c_nblock_used.2.i, i32 %.reload51, ptr %.out, ptr %.out1, ptr %.out2, ptr %.out3) nounwind {
5 ; CHECK-LABEL: BZ2_bzDecompress_bb5_2E_outer_bb35_2E_i_bb54_2E_i:
6 ; CHECK: # %bb.0: # %newFuncRoot
7 ; CHECK-NEXT: movq {{[0-9]+}}(%rsp), %r10
8 ; CHECK-NEXT: movl %edx, %edx
9 ; CHECK-NEXT: movl (%rdi,%rdx,4), %edx
10 ; CHECK-NEXT: movzbl %dl, %eax
11 ; CHECK-NEXT: addl $4, %eax
12 ; CHECK-NEXT: shrq $6, %rdx
13 ; CHECK-NEXT: andl $67108860, %edx # imm = 0x3FFFFFC
14 ; CHECK-NEXT: movl (%rdi,%rdx), %edx
15 ; CHECK-NEXT: movzbl %dl, %edi
16 ; CHECK-NEXT: shrl $8, %edx
17 ; CHECK-NEXT: addl $5, %esi
18 ; CHECK-NEXT: movl %eax, (%rcx)
19 ; CHECK-NEXT: movl %edi, (%r8)
20 ; CHECK-NEXT: movl %edx, (%r9)
21 ; CHECK-NEXT: movl %esi, (%r10)
26 bb35.i.backedge.exitStub: ; preds = %bb54.i
27 store i32 %6, ptr %.out
28 store i32 %10, ptr %.out1
29 store i32 %11, ptr %.out2
30 store i32 %12, ptr %.out3
33 bb54.i: ; preds = %newFuncRoot
34 %1 = zext i32 %.reload51 to i64 ; <i64> [#uses=1]
35 %2 = getelementptr i32, ptr %0, i64 %1 ; <ptr> [#uses=1]
36 %3 = load i32, ptr %2, align 4 ; <i32> [#uses=2]
37 %4 = lshr i32 %3, 8 ; <i32> [#uses=1]
38 %5 = and i32 %3, 255 ; <i32> [#uses=1]
39 %6 = add i32 %5, 4 ; <i32> [#uses=1]
40 %7 = zext i32 %4 to i64 ; <i64> [#uses=1]
41 %8 = getelementptr i32, ptr %0, i64 %7 ; <ptr> [#uses=1]
42 %9 = load i32, ptr %8, align 4 ; <i32> [#uses=2]
43 %10 = and i32 %9, 255 ; <i32> [#uses=1]
44 %11 = lshr i32 %9, 8 ; <i32> [#uses=1]
45 %12 = add i32 %c_nblock_used.2.i, 5 ; <i32> [#uses=1]
46 br label %bb35.i.backedge.exitStub