Swap PPC isel operands to allow for 0-folding
[oota-llvm.git] / test / Object / nm-trivial-object.test
1 RUN: yaml2obj %p/Inputs/COFF/i386.yaml | llvm-nm \
2 RUN:         | FileCheck %s -check-prefix COFF
3 RUN: yaml2obj %p/Inputs/COFF/x86-64.yaml | llvm-nm \
4 RUN:         | FileCheck %s -check-prefix COFF
5 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-i386 \
6 RUN:         | FileCheck %s -check-prefix ELF
7 RUN: llvm-nm %p/Inputs/trivial-object-test.elf-x86-64 \
8 RUN:         | FileCheck %s -check-prefix ELF
9 RUN: llvm-nm %p/Inputs/weak.elf-x86-64 \
10 RUN:         | FileCheck %s -check-prefix WEAK-ELF
11 RUN: llvm-nm %p/Inputs/absolute.elf-x86-64 \
12 RUN:         | FileCheck %s -check-prefix ABSOLUTE-ELF
13 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-i386 \
14 RUN:         | FileCheck %s -check-prefix macho
15 RUN: llvm-nm %p/Inputs/trivial-object-test.macho-x86-64 \
16 RUN:         | FileCheck %s -check-prefix macho64
17 RUN: llvm-nm %p/Inputs/common.coff-i386 \
18 RUN:         | FileCheck %s -check-prefix COFF-COMMON
19
20 COFF: 00000000 d .data
21 COFF: 00000000 t .text
22 COFF: 00000000 d L{{_?}}.str
23 COFF:          U {{_?}}SomeOtherFunction
24 COFF: 00000000 T {{_?}}main
25 COFF:          U {{_?}}puts
26
27 COFF-COMMON: 00000000 b .bss
28 COFF-COMMON-NEXT: 00000000 d .data
29 COFF-COMMON-NEXT: 00000000 d .drectve
30 COFF-COMMON-NEXT: 00000000 n .file
31 COFF-COMMON-NEXT: 00000000 r .rdata$zzz
32 COFF-COMMON-NEXT: 00000000 t .text
33 COFF-COMMON-NEXT:          C _a
34
35
36 ELF-NOT:      U
37 ELF:          U SomeOtherFunction
38 ELF: 00000000 T main
39 ELF:          U puts
40
41 WEAK-ELF:          w f1
42 WEAK-ELF: 00000000 W f2
43 WEAK-ELF:          v x1
44 WEAK-ELF: 00000000 V x2
45
46 ABSOLUTE-ELF: 00000123 a a1
47 ABSOLUTE-ELF: 00000123 A a2
48
49 macho: 00000000 U _SomeOtherFunction
50 macho: 00000000 T _main
51 macho: 00000000 U _puts
52
53 macho64: 00000028 s L_.str
54 macho64: 00000000 U _SomeOtherFunction
55 macho64: 00000000 T _main
56 macho64: 00000000 U _puts