1 # Check that fallthrough blocks are handled properly.
3 RUN: %clang %cflags %S/Inputs/sctc_bug4.s -o %t
4 RUN: llvm-bolt %t -o /dev/null \
5 RUN: -funcs=test_func -print-sctc -sequential-disassembly 2>&1 | FileCheck %s
7 CHECK: .Ltmp2 (3 instructions, align : 1)
8 CHECK-NEXT: CFI State : 0
9 CHECK-NEXT: Predecessors: .LFT1
10 CHECK-NEXT: 00000024: cmpq $0x20, %rsi
11 CHECK-NEXT: 00000028: ja dummy # TAILCALL {{.*}}# CTCTakenCount: 0
12 CHECK-NEXT: 0000002a: jmp .Ltmp4
13 CHECK-NEXT: Successors: .Ltmp4
14 CHECK-NEXT: CFI State: 0
16 CHECK: .Ltmp1 (2 instructions, align : 1)
17 CHECK-NEXT: CFI State : 0
18 CHECK-NEXT: Predecessors: .LFT0
19 CHECK-NEXT: 0000002c: xorq %r11, %rax
20 CHECK-NEXT: 0000002f: retq
21 CHECK-NEXT: CFI State: 0
23 CHECK: .Ltmp4 (4 instructions, align : 1)
24 CHECK-NEXT: CFI State : 0
25 CHECK-NEXT: Predecessors: .Ltmp2