Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / ft_to_noop.s
blob4015e592d83835f90b3d365d611b1d64f121ec37
1 .file "ft_to_noop.s"
2 .text
4 .globl foo
5 .type foo, @function
6 foo:
7 LFB0:
8 # FDATA: 0 [unknown] 0 1 foo 0 0 20
9 .cfi_startproc
10 pushq %rbp
11 .cfi_def_cfa_offset 16
12 .cfi_offset 6, -16
13 movq %rsp, %rbp
14 .cfi_def_cfa_register 6
15 movl %edi, -20(%rbp)
16 movl $0, -4(%rbp)
17 cmpl $10, -20(%rbp)
18 LBB00_br:
19 jle L2
20 nop
21 # FDATA: 1 foo #LBB00_br# 1 foo #L2# 0 18
22 # FDATA: 1 foo #LBB00_br# 1 foo #LFT0# 0 3
24 LFT0:
25 movl -20(%rbp), %eax
26 addl $1, %eax
27 movl %eax, -4(%rbp)
28 L2:
29 addl $1, -4(%rbp)
30 movl -4(%rbp), %eax
31 popq %rbp
32 .cfi_def_cfa 7, 8
33 ret
34 .cfi_endproc
35 LFE0:
36 .size foo, .-foo
38 .globl main
39 .type main, @function
40 main:
41 LFB1:
42 .cfi_startproc
43 pushq %rbp
44 .cfi_def_cfa_offset 16
45 .cfi_offset 6, -16
46 movq %rsp, %rbp
47 .cfi_def_cfa_register 6
48 subq $16, %rsp
49 movl %edi, -4(%rbp)
50 movq %rsi, -16(%rbp)
51 movl -4(%rbp), %eax
52 movl %eax, %edi
53 call foo
54 movl $0, %eax
55 leave
56 .cfi_def_cfa 7, 8
57 ret
58 .cfi_endproc
59 LFE1:
60 .size main, .-main