Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / bolt / test / X86 / Inputs / ctc_and_unreachable.s
blob705cdd3c800daebb446fdcc26e67e5b4e9f9e666
1 .text
3 .globl foo
4 .type foo, @function
5 foo:
6 cmp $1, %rdi
7 je bar
8 jmp .L2
9 .L1:
10 ret
11 .L2:
12 cmpq $1, %rdi
13 jne .L1
14 .size foo, .-foo
16 .globl bar
17 .type bar, @function
18 bar:
19 ret
20 .size bar, .-bar
22 .globl main
23 .type main, @function
24 main:
25 .LFB1:
26 .cfi_startproc
27 pushq %rbp
28 .cfi_def_cfa_offset 16
29 .cfi_offset 6, -16
30 movq %rsp, %rbp
31 .cfi_def_cfa_register 6
32 subq $16, %rsp
33 movl %edi, -4(%rbp)
34 movq %rsi, -16(%rbp)
35 movl -4(%rbp), %eax
36 movl %eax, %edi
37 call foo
38 movl $0, %eax
39 leave
40 .cfi_def_cfa 7, 8
41 ret
42 .cfi_endproc
43 .LFE1:
44 .size main, .-main