25 lines · plain
1## Check that fallthrough blocks are handled properly and Offset annotation is2## set for conditional tail calls.3 4RUN: %clang %cflags %S/Inputs/sctc_bug4.s -o %t5RUN: llvm-bolt %t -o %t.null --enable-bat \6RUN: -funcs=test_func -print-sctc -sequential-disassembly 2>&1 | FileCheck %s7 8CHECK: .Ltmp2 (3 instructions, align : 1)9CHECK-NEXT: Input offset: 0x2410CHECK-NEXT: Predecessors: .LFT111CHECK-NEXT: 00000024: cmpq $0x20, %rsi12CHECK-NEXT: 00000028: ja dummy # TAILCALL # Offset: 53 # CTCTakenCount: 013CHECK-NEXT: 0000002a: jmp .Ltmp414CHECK-NEXT: Successors: .Ltmp415 16CHECK: .Ltmp1 (2 instructions, align : 1)17CHECK-NEXT: Input offset: 0x2c18CHECK-NEXT: Predecessors: .LFT019CHECK-NEXT: 0000002c: xorq %r11, %rax20CHECK-NEXT: 0000002f: retq21 22CHECK: .Ltmp4 (4 instructions, align : 1)23CHECK-NEXT: Input offset: 0x3a24CHECK-NEXT: Predecessors: .Ltmp225