[test] Pre-commit llvm.experimental.memset.pattern tests prior to MemoryLocation...
[llvm-project.git] / llvm / test / tools / yaml2obj / XCOFF / basic-doc64.yaml
blobe1bac3e5e1cbf8c0e07ef7017eb35ac9b3f609a1
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --headers --symbols --string-table %t | \
3 # RUN:   FileCheck %s --check-prefix=CHECK64
5 --- !XCOFF
6 FileHeader:
7   MagicNumber:     0x01F7
8 Sections:
9   - Name:            .text
10     Flags:           [ STYP_TEXT ]
11   - Name:            .data
12     Flags:           [ STYP_DATA ]
13     SectionData:     "0000000000000FC0"
14   - Name:            .bss
15     Flags:           [ STYP_BSS ]
16     Relocations:
17       - Type:        0x02
18   - Name:            .debug
19     Address:         0x0
20     Size:            0x60
21     Flags:           [ STYP_DEBUG, STYP_DATA ]
22     SectionData:     01110103
23 Symbols:
24   - Name:            .file
25     Section:         N_DEBUG
26   - Name:            .undef
27   - Name:            .abs
28     Section:         N_ABS
29   - Name:            .text
30     Value:           0x0
31     Section:         .text
32     Type:            0x0
33     StorageClass:    C_HIDEXT
35 # CHECK64:      AddressSize: 64bit
36 # CHECK64-NEXT: FileHeader {
37 # CHECK64-NEXT:   Magic: 0x1F7
38 # CHECK64-NEXT:   NumberOfSections: 4
39 # CHECK64-NEXT:   TimeStamp: None (0x0)
40 # CHECK64-NEXT:   SymbolTableOffset: 0x152
41 # CHECK64-NEXT:   SymbolTableEntries: 4
42 # CHECK64-NEXT:   OptionalHeaderSize: 0x0
43 # CHECK64-NEXT:   Flags: 0x0
44 # CHECK64-NEXT: }
45 # CHECK64-NEXT: AuxiliaryHeader {
46 # CHECK64-NEXT: }
47 # CHECK64-NEXT: Sections [
48 # CHECK64-NEXT:   Section {
49 # CHECK64-NEXT:     Index: 1
50 # CHECK64-NEXT:     Name: .text
51 # CHECK64-NEXT:     PhysicalAddress: 0x0
52 # CHECK64-NEXT:     VirtualAddress: 0x0
53 # CHECK64-NEXT:     Size: 0x0
54 # CHECK64-NEXT:     RawDataOffset: 0x0
55 # CHECK64-NEXT:     RelocationPointer: 0x0
56 # CHECK64-NEXT:     LineNumberPointer: 0x0
57 # CHECK64-NEXT:     NumberOfRelocations: 0
58 # CHECK64-NEXT:     NumberOfLineNumbers: 0
59 # CHECK64-NEXT:     Type: STYP_TEXT (0x20)
60 # CHECK64-NEXT:   }
61 # CHECK64-NEXT:   Section {
62 # CHECK64-NEXT:     Index: 2
63 # CHECK64-NEXT:     Name: .data
64 # CHECK64-NEXT:     PhysicalAddress: 0x0
65 # CHECK64-NEXT:     VirtualAddress: 0x0
66 # CHECK64-NEXT:     Size: 0x8
67 # CHECK64-NEXT:     RawDataOffset: 0x138
68 # CHECK64-NEXT:     RelocationPointer: 0x0
69 # CHECK64-NEXT:     LineNumberPointer: 0x0
70 # CHECK64-NEXT:     NumberOfRelocations: 0
71 # CHECK64-NEXT:     NumberOfLineNumbers: 0
72 # CHECK64-NEXT:     Type: STYP_DATA (0x40)
73 # CHECK64-NEXT:   }
74 # CHECK64-NEXT:   Section {
75 # CHECK64-NEXT:     Index: 3
76 # CHECK64-NEXT:     Name: .bss
77 # CHECK64-NEXT:     PhysicalAddress: 0x8
78 # CHECK64-NEXT:     VirtualAddress: 0x8
79 # CHECK64-NEXT:     Size: 0x0
80 # CHECK64-NEXT:     RawDataOffset: 0x0
81 # CHECK64-NEXT:     RelocationPointer: 0x144
82 # CHECK64-NEXT:     LineNumberPointer: 0x0
83 # CHECK64-NEXT:     NumberOfRelocations: 1
84 # CHECK64-NEXT:     NumberOfLineNumbers: 0
85 # CHECK64-NEXT:     Type: STYP_BSS (0x80)
86 # CHECK64-NEXT:   }
87 # CHECK64-NEXT:   Section {
88 # CHECK64-NEXT:     Index: 4
89 # CHECK64-NEXT:     Name: .debug
90 # CHECK64-NEXT:     PhysicalAddress: 0x0
91 # CHECK64-NEXT:     VirtualAddress: 0x0
92 # CHECK64-NEXT:     Size: 0x60
93 # CHECK64-NEXT:     RawDataOffset: 0x140
94 # CHECK64-NEXT:     RelocationPointer: 0x0
95 # CHECK64-NEXT:     LineNumberPointer: 0x0
96 # CHECK64-NEXT:     NumberOfRelocations: 0
97 # CHECK64-NEXT:     NumberOfLineNumbers: 0
98 # CHECK64-NEXT:     Type: 0x2040
99 # CHECK64-NEXT:   }
100 # CHECK64-NEXT: ]
101 # CHECK64-NEXT: Symbols [
102 # CHECK64-NEXT:   Symbol {
103 # CHECK64-NEXT:     Index: 0
104 # CHECK64-NEXT:     Name: .file
105 # CHECK64-NEXT:     Value: 0x0
106 # CHECK64-NEXT:     Section: N_DEBUG
107 # CHECK64-NEXT:     Type: 0x0
108 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
109 # CHECK64-NEXT:     NumberOfAuxEntries: 0
110 # CHECK64-NEXT:   }
111 # CHECK64-NEXT:   Symbol {
112 # CHECK64-NEXT:     Index: 1
113 # CHECK64-NEXT:     Name: .undef
114 # CHECK64-NEXT:     Value: 0x0
115 # CHECK64-NEXT:     Section: N_UNDEF
116 # CHECK64-NEXT:     Type: 0x0
117 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
118 # CHECK64-NEXT:     NumberOfAuxEntries: 0
119 # CHECK64-NEXT:   }
120 # CHECK64-NEXT:   Symbol {
121 # CHECK64-NEXT:     Index: 2
122 # CHECK64-NEXT:     Name: .abs
123 # CHECK64-NEXT:     Value: 0x0
124 # CHECK64-NEXT:     Section: N_ABS
125 # CHECK64-NEXT:     Type: 0x0
126 # CHECK64-NEXT:     StorageClass: C_NULL (0x0)
127 # CHECK64-NEXT:     NumberOfAuxEntries: 0
128 # CHECK64-NEXT:   }
129 # CHECK64-NEXT:   Symbol {
130 # CHECK64-NEXT:     Index: 3
131 # CHECK64-NEXT:     Name: .text
132 # CHECK64-NEXT:     Value (RelocatableAddress): 0x0
133 # CHECK64-NEXT:     Section: .text
134 # CHECK64-NEXT:     Type: 0x0
135 # CHECK64-NEXT:     StorageClass: C_HIDEXT (0x6B)
136 # CHECK64-NEXT:     NumberOfAuxEntries: 0
137 # CHECK64-NEXT:   }
138 # CHECK64-NEXT: ]
139 # CHECK64-NEXT: StringTable {
140 # CHECK64-NEXT:   Length: 28
141 # CHECK64-NEXT:   [     4]   .text
142 # CHECK64-NEXT:   [     a]   .abs
143 # CHECK64-NEXT:   [     f]   .undef
144 # CHECK64-NEXT:   [    16]   .file
145 # CHECK64-NEXT: }