[PowerPC][NFC] Add a test case for extract and store patterns
[llvm-core.git] / test / Object / archive-GNU64-write.test
blob0bfb7c80d05acb3de6956085e596bdce3ebdfd6a
1 # REQUIRES: llvm-64-bits
2 # REQUIRES: system-linux
3 # REQUIRES: shell
5 # RUN: yaml2obj %s > %t
6 # RUN: dd if=%t of=%t bs=1 count=0 seek=1M
7 # RUN: rm -f %t.lib
8 # RUN: cp %t %t2
9 # RUN: SYM64_THRESHOLD=19 llvm-ar cr %t.lib %t %t2 %p/Inputs/trivial-object-test.elf-x86-64
10 # RUN: llvm-nm --print-armap %t.lib | FileCheck %s
11 # RUN: grep SYM64 %t.lib
13 # Delete temp files. They are too large.
14 # RUN: rm -f %t %t2 %t.lib
16 !ELF
17 FileHeader:
18   Class:           ELFCLASS64
19   Data:            ELFDATA2LSB
20   Type:            ET_EXEC
21   Machine:         EM_X86_64
22 Sections:
23   - Name:            .data
24     Type:            SHT_PROGBITS
25     Flags:           [ SHF_ALLOC ]
26     AddressAlign:    0x0000000000000001
27     Content:         "00"
28     Size:            32
30 # CHECK:      Archive map
31 # CHECK-NEXT: main in trivial-object-test.elf-x86-64
33 # CHECK:    archive-GNU64-write.test.tmp:
35 # CHECK:    archive-GNU64-write.test.tmp2:
37 # CHECK:    trivial-object-test.elf-x86-64:
38 # CHECK-NEXT:                     U SomeOtherFunction
39 # CHECK-NEXT:    0000000000000000 T main
40 # CHECK-NEXT:                     U puts