Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-size / X86 / ignore-sections.s
blob61aa2e780e513649926a28fc21d8fb92291fd933
1 // RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
2 // RUN: llvm-size -A %t.o | FileCheck --check-prefix="SYSV" %s
3 // RUN: llvm-size -B -t %t.o| FileCheck --check-prefix="BSD" %s
5 .text
6 .zero 4
7 .data
8 .long foo
9 .bss
10 .zero 4
11 .ident "foo"
12 .section foo
13 .long 42
14 .cfi_startproc
15 .cfi_endproc
17 // SYSV: {{[ -\(\)_A-Za-z0-9.\\/:]+}} :
18 // SYSV-NEXT: section size addr
19 // SYSV-NEXT: .text 4 0
20 // SYSV-NEXT: .data 4 0
21 // SYSV-NEXT: .bss 4 0
22 // SYSV-NEXT: .comment 5 0
23 // SYSV-NEXT: foo 4 0
24 // SYSV-NEXT: .eh_frame 48 0
25 // SYSV-NEXT: Total 69
27 // BSD: text data bss dec hex filename
28 // BSD-NEXT: 52 4 4 60 3c {{[ -\(\)_A-Za-z0-9.\\/:]+}}
29 // BSD-NEXT: 52 4 4 60 3c (TOTALS)