Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / ELF / cfi-startproc-pushsection.s
blob91d5dc1b4b0788de12012f8d2450111c23159fd7
1 // RUN: llvm-mc -filetype=obj -triple x86_64-linux %s -o - | llvm-dwarfdump --eh-frame - | FileCheck %s
3 .section .text.a, "ax", %progbits
4 .cfi_startproc
5 .cfi_def_cfa %rsp, 0
7 .pushsection .text.b, "ax", %progbits
8 .cfi_startproc simple
9 .cfi_def_cfa %rsp, 8
10 nop
11 ret
13 .pushsection .text.c, "ax", %progbits
14 .cfi_startproc simple
15 .cfi_def_cfa %rsp, 16
16 nop
17 nop
18 ret
19 .cfi_endproc
20 .popsection
22 .cfi_endproc
23 .popsection
25 .pushsection .text.d, "ax", %progbits
26 .cfi_startproc simple
27 .cfi_def_cfa %rsp, 24
28 nop
29 nop
30 nop
31 ret
32 .cfi_endproc
33 .popsection
35 ret
36 .cfi_endproc
38 // CHECK: pc=00000000...00000001
39 // CHECK: RSP +0
40 // CHECK: pc=00000000...00000002
41 // CHECK: RSP +8
42 // CHECK: pc=00000000...00000003
43 // CHECK: RSP +16
44 // CHECK: pc=00000000...00000004
45 // CHECK: RSP +24