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
20 # SYSV-NEXT: [[FILE2]] :
21 # SYSV-NEXT: section size addr
22 # SYSV-NEXT: .text 8 32
23 # SYSV-NEXT: .data 16 16
24 # SYSV-NEXT: .bss 32 8
37 Flags: [SHF_ALLOC, SHF_EXECINSTR]
42 Flags: [SHF_ALLOC, SHF_WRITE]
47 Flags: [SHF_ALLOC, SHF_WRITE]
60 Flags: [SHF_ALLOC, SHF_EXECINSTR]
65 Flags: [SHF_ALLOC, SHF_WRITE]
70 Flags: [SHF_ALLOC, SHF_WRITE]