1 ## Show how llvm-size behaves when passed in multiple inputs.
3 # RUN: yaml2obj %s --docnum=1 -o %t1
4 # RUN: yaml2obj %s --docnum=2 -o %t2
5 # RUN: llvm-size -B %t1 %t2 | FileCheck %s -DFILE1=%t1 -DFILE2=%t2 --check-prefix=BERKELEY
6 # RUN: llvm-size -A %t1 %t2 | FileCheck %s -DFILE1=%t1 -DFILE2=%t2 --check-prefix=SYSV
8 # BERKELEY: text data bss dec hex filename
9 # BERKELEY-NEXT: 1 2 4 7 7 [[FILE1]]
10 # BERKELEY-NEXT: 8 16 32 56 38 [[FILE2]]
14 # SYSV-NEXT: section size addr
15 # SYSV-NEXT: .text 1 4
16 # SYSV-NEXT: .data 2 2
21 # SYSV-NEXT: [[FILE2]] :
22 # SYSV-NEXT: section size addr
23 # SYSV-NEXT: .text 8 32
24 # SYSV-NEXT: .data 16 16
25 # SYSV-NEXT: .bss 32 8
38 Flags: [SHF_ALLOC, SHF_EXECINSTR]
43 Flags: [SHF_ALLOC, SHF_WRITE]
48 Flags: [SHF_ALLOC, SHF_WRITE]
61 Flags: [SHF_ALLOC, SHF_EXECINSTR]
66 Flags: [SHF_ALLOC, SHF_WRITE]
71 Flags: [SHF_ALLOC, SHF_WRITE]