1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown | FileCheck %s
4 declare dso_local void @bar()
6 define void @foo(ptr) {
8 ; CHECK: # %bb.0: # %start
9 ; CHECK-NEXT: movl (%rdi), %eax
10 ; CHECK-NEXT: andl $6, %eax
11 ; CHECK-NEXT: cmpl $4, %eax
12 ; CHECK-NEXT: jne .LBB0_2
13 ; CHECK-NEXT: # %bb.1: # %bb1
15 ; CHECK-NEXT: .LBB0_2: # %bb2.i
16 ; CHECK-NEXT: jmp bar # TAILCALL
18 %1 = load i64, ptr %0, align 8, !range !0
20 %3 = icmp eq i64 %2, 4
21 br i1 %3, label %bb1, label %bb2.i
23 bb1: ; preds = %bb2.i, %start
26 bb2.i: ; preds = %start
27 tail call fastcc void @bar()