1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -mtriple=x86_64-- < %s | FileCheck %s
5 %0 = type { i32, i8, [35 x i8] }
7 @g_144 = external dso_local global %0, align 8 ; <ptr> [#uses=1]
9 define i32 @int87(i32 %uint64p_8, i1 %cond) nounwind {
11 ; CHECK: # %bb.0: # %entry
12 ; CHECK-NEXT: movq g_144+24(%rip), %rax
13 ; CHECK-NEXT: movq g_144+16(%rip), %rcx
14 ; CHECK-NEXT: movzbl %sil, %edx
15 ; CHECK-NEXT: shll $6, %edx
16 ; CHECK-NEXT: .p2align 4
17 ; CHECK-NEXT: .LBB0_1: # %for.cond
18 ; CHECK-NEXT: # =>This Inner Loop Header: Depth=1
19 ; CHECK-NEXT: testb $64, %dl
20 ; CHECK-NEXT: movq %rcx, %rsi
21 ; CHECK-NEXT: cmovneq %rax, %rsi
22 ; CHECK-NEXT: testl %esi, %esi
23 ; CHECK-NEXT: je .LBB0_1
24 ; CHECK-NEXT: # %bb.2: # %if.then
25 ; CHECK-NEXT: movl $1, %eax
28 %srcval4 = load i320, ptr @g_144, align 8 ; <i320> [#uses=1]
31 for.cond: ; preds = %for.cond, %entry
32 %call3.in.in.in.v = select i1 %cond, i320 192, i320 128 ; <i320> [#uses=1]
33 %call3.in.in.in = lshr i320 %srcval4, %call3.in.in.in.v ; <i320> [#uses=1]
34 %call3.in = trunc i320 %call3.in.in.in to i32 ; <i32> [#uses=1]
35 %tobool = icmp eq i32 %call3.in, 0 ; <i1> [#uses=1]
36 br i1 %tobool, label %for.cond, label %if.then
38 if.then: ; preds = %for.cond