1 ## Check that fallthrough blocks are handled properly and Offset annotation is
2 ## set for conditional tail calls.
4 RUN: %clang %cflags %S/Inputs/sctc_bug4.s -o %t
5 RUN: llvm-bolt %t -o %t.null --enable-bat \
6 RUN: -funcs=test_func -print-sctc -sequential-disassembly 2>&1 | FileCheck %s
8 CHECK: .Ltmp2 (3 instructions, align : 1)
9 CHECK-NEXT: Input offset: 0x24
10 CHECK-NEXT: Predecessors: .LFT1
11 CHECK-NEXT: 00000024: cmpq $0x20, %rsi
12 CHECK-NEXT: 00000028: ja dummy # TAILCALL # Offset: 53 # CTCTakenCount: 0
13 CHECK-NEXT: 0000002a: jmp .Ltmp4
14 CHECK-NEXT: Successors: .Ltmp4
16 CHECK: .Ltmp1 (2 instructions, align : 1)
17 CHECK-NEXT: Input offset: 0x2c
18 CHECK-NEXT: Predecessors: .LFT0
19 CHECK-NEXT: 0000002c: xorq %r11, %rax
20 CHECK-NEXT: 0000002f: retq
22 CHECK: .Ltmp4 (4 instructions, align : 1)
23 CHECK-NEXT: Input offset: 0x3a
24 CHECK-NEXT: Predecessors: .Ltmp2