xref: /llvm-project/bolt/test/X86/sctc-bug3.test (revision 11791ae7b0b05b8bd8d806331ff51da618912cf8)
1## Check that we don't accidentally optimize out a tail call.
2
3RUN: %clang %cflags %S/Inputs/sctc_bug3.s -o %t
4RUN: llvm-bolt %t -o %t.null --funcs=main --print-after-lowering \
5RUN:   --sequential-disassembly 2>&1 | FileCheck %s
6
7CHECK: .LBB00 (1 instructions, align : 1)
8CHECK:  cmpq   %rdi, 0x0
9
10## Check that .Ltmp0 does not have a deleted predecessor.
11CHECK: .Ltmp0 (1 instructions, align : 1)
12CHECK:  Predecessors: .LBB00
13
14## Tail call.
15CHECK:    jmp    foo
16