Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / call-zero.s
blob3644bf5d962d0541a9ac0e3c3b7597798d7b6067
1 # Verifies that llvm-bolt ignores function calls to 0.
3 # RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o
4 # RUN: %clang %cflags %t.o -o %t.exe
5 # RUN: llvm-bolt %t.exe -o /dev/null -v=2 2>&1 | FileCheck %s
6 # CHECK: Function main has a call to address zero.
8 .text
9 .globl main
10 .type main, %function
11 main:
12 # FDATA: 0 [unknown] 0 1 main 0 0 0
13 .cfi_startproc
14 .LBB00:
15 pushq %rbp
16 .cfi_def_cfa_offset 16
17 .cfi_offset %rbp, -16
18 movq %rsp, %rbp
19 .cfi_def_cfa_register %rbp
20 movl $0x0, %eax
21 testq %rax, %rax
22 .LBB00_br: je .Ltmp0
23 # FDATA: 1 main #.LBB00_br# 1 main #.Ltmp0# 0 0
24 # FDATA: 1 main #.LBB00_br# 1 main #.LFT0# 0 0
26 .LFT0:
27 movl $0x0, %eax
28 .LFT0_br: callq 0
29 # FDATA: 1 main #.LFT0_br# 1 main #.Ltmp0# 0 0
31 .Ltmp0:
32 movl $0x0, %eax
33 popq %rbp
34 .cfi_def_cfa %rsp, 8
35 retq
37 .cfi_endproc
38 .size main, .-main