1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
4 define void @PR33747(ptr nocapture) {
5 ; CHECK-LABEL: PR33747:
7 ; CHECK-NEXT: movl 24(%rdi), %eax
8 ; CHECK-NEXT: leal 1(%rax), %ecx
9 ; CHECK-NEXT: cmpl $3, %ecx
10 ; CHECK-NEXT: setb %cl
11 ; CHECK-NEXT: testl %eax, %eax
12 ; CHECK-NEXT: setne %al
13 ; CHECK-NEXT: testb %cl, %al
14 ; CHECK-NEXT: je .LBB0_2
15 ; CHECK-NEXT: .p2align 4, 0x90
16 ; CHECK-NEXT: .LBB0_1: # =>This Inner Loop Header: Depth=1
17 ; CHECK-NEXT: jmp .LBB0_1
18 ; CHECK-NEXT: .p2align 4, 0x90
19 ; CHECK-NEXT: .LBB0_2: # =>This Inner Loop Header: Depth=1
20 ; CHECK-NEXT: jmp .LBB0_2
21 %2 = getelementptr inbounds i32, ptr %0, i64 6
22 %3 = load i32, ptr %2, align 4
24 %5 = icmp ult i32 %4, 3
25 %6 = icmp ne i32 %3, 0
27 br i1 %7, label %8, label %9