1 # This reproduces issue 26 from our github repo
2 # BOLT fails with the following assertion:
3 # llvm/tools/llvm-bolt/src/BinaryFunction.cpp:2950: void llvm::bolt::BinaryFunction::postProcessBranches(): Assertion `validateCFG() && "invalid CFG"' failed.
5 # REQUIRES: system-linux
7 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown \
9 # RUN: %clang %cflags %t.o -o %t.exe -Wl,-q
10 # RUN: llvm-bolt %t.exe --relocs --print-cfg -o %t.out 2>&1 \
13 # CHECK-NOT: BOLT-WARNING: CFG invalid in XYZ @ .LBB0
15 # CHECK: Binary Function "XYZ"
17 # CHECK: .Ltmp{{.*}} (1 instructions, align : 1)
18 # CHECK-NEXT: Secondary Entry Point: FUNCat{{.*}}
37 movl $
0xffffffff, %eax
43 .size FUNC, .Lend - FUNC
52 .size main, .Lend2 - main
57 # For relocations against .text