1 # RUN: yaml2obj -docnum=1 %s > %t.o.1
2 # RUN: llvm-readobj -S --file-headers %t.o.1 | FileCheck --check-prefixes=ELF-ALL,ELF-R600 %s
3 # RUN: obj2yaml %t.o.1 | FileCheck --check-prefixes=YAML-R600 %s
4 # RUN: yaml2obj -docnum=2 %s > %t.o.2
5 # RUN: llvm-readobj -S --file-headers %t.o.2 | FileCheck --check-prefixes=ELF-ALL,ELF-R630 %s
6 # RUN: obj2yaml %t.o.2 | FileCheck --check-prefixes=YAML-R630 %s
7 # RUN: yaml2obj -docnum=3 %s > %t.o.3
8 # RUN: llvm-readobj -S --file-headers %t.o.3 | FileCheck --check-prefixes=ELF-ALL,ELF-RS880 %s
9 # RUN: obj2yaml %t.o.3 | FileCheck --check-prefixes=YAML-RS880 %s
10 # RUN: yaml2obj -docnum=4 %s > %t.o.4
11 # RUN: llvm-readobj -S --file-headers %t.o.4 | FileCheck --check-prefixes=ELF-ALL,ELF-RV670 %s
12 # RUN: obj2yaml %t.o.4 | FileCheck --check-prefixes=YAML-RV670 %s
13 # RUN: yaml2obj -docnum=5 %s > %t.o.5
14 # RUN: llvm-readobj -S --file-headers %t.o.5 | FileCheck --check-prefixes=ELF-ALL,ELF-RV710 %s
15 # RUN: obj2yaml %t.o.5 | FileCheck --check-prefixes=YAML-RV710 %s
16 # RUN: yaml2obj -docnum=6 %s > %t.o.6
17 # RUN: llvm-readobj -S --file-headers %t.o.6 | FileCheck --check-prefixes=ELF-ALL,ELF-RV730 %s
18 # RUN: obj2yaml %t.o.6 | FileCheck --check-prefixes=YAML-RV730 %s
19 # RUN: yaml2obj -docnum=7 %s > %t.o.7
20 # RUN: llvm-readobj -S --file-headers %t.o.7 | FileCheck --check-prefixes=ELF-ALL,ELF-RV770 %s
21 # RUN: obj2yaml %t.o.7 | FileCheck --check-prefixes=YAML-RV770 %s
22 # RUN: yaml2obj -docnum=8 %s > %t.o.8
23 # RUN: llvm-readobj -S --file-headers %t.o.8 | FileCheck --check-prefixes=ELF-ALL,ELF-CEDAR %s
24 # RUN: obj2yaml %t.o.8 | FileCheck --check-prefixes=YAML-CEDAR %s
25 # RUN: yaml2obj -docnum=9 %s > %t.o.9
26 # RUN: llvm-readobj -S --file-headers %t.o.9 | FileCheck --check-prefixes=ELF-ALL,ELF-CYPRESS %s
27 # RUN: obj2yaml %t.o.9 | FileCheck --check-prefixes=YAML-CYPRESS %s
28 # RUN: yaml2obj -docnum=10 %s > %t.o.10
29 # RUN: llvm-readobj -S --file-headers %t.o.10 | FileCheck --check-prefixes=ELF-ALL,ELF-JUNIPER %s
30 # RUN: obj2yaml %t.o.10 | FileCheck --check-prefixes=YAML-JUNIPER %s
31 # RUN: yaml2obj -docnum=11 %s > %t.o.11
32 # RUN: llvm-readobj -S --file-headers %t.o.11 | FileCheck --check-prefixes=ELF-ALL,ELF-REDWOOD %s
33 # RUN: obj2yaml %t.o.11 | FileCheck --check-prefixes=YAML-REDWOOD %s
34 # RUN: yaml2obj -docnum=12 %s > %t.o.12
35 # RUN: llvm-readobj -S --file-headers %t.o.12 | FileCheck --check-prefixes=ELF-ALL,ELF-SUMO %s
36 # RUN: obj2yaml %t.o.12 | FileCheck --check-prefixes=YAML-SUMO %s
37 # RUN: yaml2obj -docnum=13 %s > %t.o.13
38 # RUN: llvm-readobj -S --file-headers %t.o.13 | FileCheck --check-prefixes=ELF-ALL,ELF-BARTS %s
39 # RUN: obj2yaml %t.o.13 | FileCheck --check-prefixes=YAML-BARTS %s
40 # RUN: yaml2obj -docnum=14 %s > %t.o.14
41 # RUN: llvm-readobj -S --file-headers %t.o.14 | FileCheck --check-prefixes=ELF-ALL,ELF-CAICOS %s
42 # RUN: obj2yaml %t.o.14 | FileCheck --check-prefixes=YAML-CAICOS %s
43 # RUN: yaml2obj -docnum=15 %s > %t.o.15
44 # RUN: llvm-readobj -S --file-headers %t.o.15 | FileCheck --check-prefixes=ELF-ALL,ELF-CAYMAN %s
45 # RUN: obj2yaml %t.o.15 | FileCheck --check-prefixes=YAML-CAYMAN %s
46 # RUN: yaml2obj -docnum=16 %s > %t.o.16
47 # RUN: llvm-readobj -S --file-headers %t.o.16 | FileCheck --check-prefixes=ELF-ALL,ELF-TURKS %s
48 # RUN: obj2yaml %t.o.16 | FileCheck --check-prefixes=YAML-TURKS %s
49 # RUN: yaml2obj -docnum=17 %s > %t.o.17
50 # RUN: llvm-readobj -S --file-headers %t.o.17 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX600 %s
51 # RUN: obj2yaml %t.o.17 | FileCheck --check-prefixes=YAML-GFX600 %s
52 # RUN: yaml2obj -docnum=18 %s > %t.o.18
53 # RUN: llvm-readobj -S --file-headers %t.o.18 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX601 %s
54 # RUN: obj2yaml %t.o.18 | FileCheck --check-prefixes=YAML-GFX601 %s
55 # RUN: yaml2obj -docnum=19 %s > %t.o.19
56 # RUN: llvm-readobj -S --file-headers %t.o.19 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX700 %s
57 # RUN: obj2yaml %t.o.19 | FileCheck --check-prefixes=YAML-GFX700 %s
58 # RUN: yaml2obj -docnum=20 %s > %t.o.20
59 # RUN: llvm-readobj -S --file-headers %t.o.20 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX701 %s
60 # RUN: obj2yaml %t.o.20 | FileCheck --check-prefixes=YAML-GFX701 %s
61 # RUN: yaml2obj -docnum=21 %s > %t.o.21
62 # RUN: llvm-readobj -S --file-headers %t.o.21 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX702 %s
63 # RUN: obj2yaml %t.o.21 | FileCheck --check-prefixes=YAML-GFX702 %s
64 # RUN: yaml2obj -docnum=22 %s > %t.o.22
65 # RUN: llvm-readobj -S --file-headers %t.o.22 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX703 %s
66 # RUN: obj2yaml %t.o.22 | FileCheck --check-prefixes=YAML-GFX703 %s
67 # RUN: yaml2obj -docnum=23 %s > %t.o.23
68 # RUN: llvm-readobj -S --file-headers %t.o.23 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX704 %s
69 # RUN: obj2yaml %t.o.23 | FileCheck --check-prefixes=YAML-GFX704 %s
70 # RUN: yaml2obj -docnum=24 %s > %t.o.24
71 # RUN: llvm-readobj -S --file-headers %t.o.24 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX801 %s
72 # RUN: obj2yaml %t.o.24 | FileCheck --check-prefixes=YAML-GFX801 %s
73 # RUN: yaml2obj -docnum=25 %s > %t.o.25
74 # RUN: llvm-readobj -S --file-headers %t.o.25 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX802 %s
75 # RUN: obj2yaml %t.o.25 | FileCheck --check-prefixes=YAML-GFX802 %s
76 # RUN: yaml2obj -docnum=26 %s > %t.o.26
77 # RUN: llvm-readobj -S --file-headers %t.o.26 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX803 %s
78 # RUN: obj2yaml %t.o.26 | FileCheck --check-prefixes=YAML-GFX803 %s
79 # RUN: yaml2obj -docnum=27 %s > %t.o.27
80 # RUN: llvm-readobj -S --file-headers %t.o.27 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX810 %s
81 # RUN: obj2yaml %t.o.27 | FileCheck --check-prefixes=YAML-GFX810 %s
82 # RUN: yaml2obj -docnum=28 %s > %t.o.28
83 # RUN: llvm-readobj -S --file-headers %t.o.28 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX900 %s
84 # RUN: obj2yaml %t.o.28 | FileCheck --check-prefixes=YAML-GFX900 %s
85 # RUN: yaml2obj -docnum=29 %s > %t.o.29
86 # RUN: llvm-readobj -S --file-headers %t.o.29 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX902 %s
87 # RUN: obj2yaml %t.o.29 | FileCheck --check-prefixes=YAML-GFX902 %s
88 # RUN: yaml2obj -docnum=30 %s > %t.o.30
89 # RUN: llvm-readobj -S --file-headers %t.o.30 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX904 %s
90 # RUN: obj2yaml %t.o.30 | FileCheck --check-prefixes=YAML-GFX904 %s
91 # RUN: yaml2obj -docnum=31 %s > %t.o.31
92 # RUN: llvm-readobj -S --file-headers %t.o.31 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX906 %s
93 # RUN: obj2yaml %t.o.31 | FileCheck --check-prefixes=YAML-GFX906 %s
94 # RUN: yaml2obj -docnum=32 %s > %t.o.32
95 # RUN: llvm-readobj -s -file-headers %t.o.32 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX908 %s
96 # RUN: obj2yaml %t.o.32 | FileCheck --check-prefixes=YAML-GFX908 %s
97 # RUN: yaml2obj -docnum=33 %s > %t.o.33
98 # RUN: llvm-readobj -s -file-headers %t.o.33 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX909 %s
99 # RUN: obj2yaml %t.o.33 | FileCheck --check-prefixes=YAML-GFX909 %s
100 # RUN: yaml2obj -docnum=34 %s > %t.o.34
101 # RUN: llvm-readobj -s -file-headers %t.o.34 | FileCheck --check-prefixes=ELF-ALL,ELF-GFX1010 %s
102 # RUN: obj2yaml %t.o.34 | FileCheck --check-prefixes=YAML-GFX1010 %s
105 # ELF-R600: EF_AMDGPU_MACH_R600_R600 (0x1)
106 # ELF-R630: EF_AMDGPU_MACH_R600_R630 (0x2)
107 # ELF-RS880: EF_AMDGPU_MACH_R600_RS880 (0x3)
108 # ELF-RV670: EF_AMDGPU_MACH_R600_RV670 (0x4)
109 # ELF-RV710: EF_AMDGPU_MACH_R600_RV710 (0x5)
110 # ELF-RV730: EF_AMDGPU_MACH_R600_RV730 (0x6)
111 # ELF-RV770: EF_AMDGPU_MACH_R600_RV770 (0x7)
112 # ELF-CEDAR: EF_AMDGPU_MACH_R600_CEDAR (0x8)
113 # ELF-CYPRESS: EF_AMDGPU_MACH_R600_CYPRESS (0x9)
114 # ELF-JUNIPER: EF_AMDGPU_MACH_R600_JUNIPER (0xA)
115 # ELF-REDWOOD: EF_AMDGPU_MACH_R600_REDWOOD (0xB)
116 # ELF-SUMO: EF_AMDGPU_MACH_R600_SUMO (0xC)
117 # ELF-BARTS: EF_AMDGPU_MACH_R600_BARTS (0xD)
118 # ELF-CAICOS: EF_AMDGPU_MACH_R600_CAICOS (0xE)
119 # ELF-CAYMAN: EF_AMDGPU_MACH_R600_CAYMAN (0xF)
120 # ELF-TURKS: EF_AMDGPU_MACH_R600_TURKS (0x10)
121 # ELF-GFX600: EF_AMDGPU_MACH_AMDGCN_GFX600 (0x20)
122 # ELF-GFX601: EF_AMDGPU_MACH_AMDGCN_GFX601 (0x21)
123 # ELF-GFX700: EF_AMDGPU_MACH_AMDGCN_GFX700 (0x22)
124 # ELF-GFX701: EF_AMDGPU_MACH_AMDGCN_GFX701 (0x23)
125 # ELF-GFX702: EF_AMDGPU_MACH_AMDGCN_GFX702 (0x24)
126 # ELF-GFX703: EF_AMDGPU_MACH_AMDGCN_GFX703 (0x25)
127 # ELF-GFX704: EF_AMDGPU_MACH_AMDGCN_GFX704 (0x26)
128 # ELF-GFX801: EF_AMDGPU_MACH_AMDGCN_GFX801 (0x28)
129 # ELF-GFX802: EF_AMDGPU_MACH_AMDGCN_GFX802 (0x29)
130 # ELF-GFX803: EF_AMDGPU_MACH_AMDGCN_GFX803 (0x2A)
131 # ELF-GFX810: EF_AMDGPU_MACH_AMDGCN_GFX810 (0x2B)
132 # ELF-GFX900: EF_AMDGPU_MACH_AMDGCN_GFX900 (0x2C)
133 # ELF-GFX902: EF_AMDGPU_MACH_AMDGCN_GFX902 (0x2D)
134 # ELF-GFX904: EF_AMDGPU_MACH_AMDGCN_GFX904 (0x2E)
135 # ELF-GFX906: EF_AMDGPU_MACH_AMDGCN_GFX906 (0x2F)
136 # ELF-GFX908: EF_AMDGPU_MACH_AMDGCN_GFX908 (0x30)
137 # ELF-GFX909: EF_AMDGPU_MACH_AMDGCN_GFX909 (0x31)
138 # ELF-GFX1010: EF_AMDGPU_MACH_AMDGCN_GFX1010 (0x33)
141 # YAML-R600: Flags: [ EF_AMDGPU_MACH_R600_R600 ]
142 # YAML-R630: Flags: [ EF_AMDGPU_MACH_R600_R630 ]
143 # YAML-RS880: Flags: [ EF_AMDGPU_MACH_R600_RS880 ]
144 # YAML-RV670: Flags: [ EF_AMDGPU_MACH_R600_RV670 ]
145 # YAML-RV710: Flags: [ EF_AMDGPU_MACH_R600_RV710 ]
146 # YAML-RV730: Flags: [ EF_AMDGPU_MACH_R600_RV730 ]
147 # YAML-RV770: Flags: [ EF_AMDGPU_MACH_R600_RV770 ]
148 # YAML-CEDAR: Flags: [ EF_AMDGPU_MACH_R600_CEDAR ]
149 # YAML-CYPRESS: Flags: [ EF_AMDGPU_MACH_R600_CYPRESS ]
150 # YAML-JUNIPER: Flags: [ EF_AMDGPU_MACH_R600_JUNIPER ]
151 # YAML-REDWOOD: Flags: [ EF_AMDGPU_MACH_R600_REDWOOD ]
152 # YAML-SUMO: Flags: [ EF_AMDGPU_MACH_R600_SUMO ]
153 # YAML-BARTS: Flags: [ EF_AMDGPU_MACH_R600_BARTS ]
154 # YAML-CAICOS: Flags: [ EF_AMDGPU_MACH_R600_CAICOS ]
155 # YAML-CAYMAN: Flags: [ EF_AMDGPU_MACH_R600_CAYMAN ]
156 # YAML-TURKS: Flags: [ EF_AMDGPU_MACH_R600_TURKS ]
157 # YAML-GFX600: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX600 ]
158 # YAML-GFX601: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX601 ]
159 # YAML-GFX700: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX700 ]
160 # YAML-GFX701: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX701 ]
161 # YAML-GFX702: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX702 ]
162 # YAML-GFX703: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX703 ]
163 # YAML-GFX704: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX704 ]
164 # YAML-GFX801: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX801 ]
165 # YAML-GFX802: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX802 ]
166 # YAML-GFX803: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX803 ]
167 # YAML-GFX810: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX810 ]
168 # YAML-GFX900: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900 ]
169 # YAML-GFX902: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX902 ]
170 # YAML-GFX904: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX904 ]
171 # YAML-GFX906: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX906 ]
172 # YAML-GFX908: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX908 ]
173 # YAML-GFX909: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX909 ]
174 # YAML-GFX1010: Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX1010 ]
184 Flags: [ EF_AMDGPU_MACH_R600_R600 ]
195 Flags: [ EF_AMDGPU_MACH_R600_R630 ]
206 Flags: [ EF_AMDGPU_MACH_R600_RS880 ]
217 Flags: [ EF_AMDGPU_MACH_R600_RV670 ]
228 Flags: [ EF_AMDGPU_MACH_R600_RV710 ]
239 Flags: [ EF_AMDGPU_MACH_R600_RV730 ]
250 Flags: [ EF_AMDGPU_MACH_R600_RV770 ]
261 Flags: [ EF_AMDGPU_MACH_R600_CEDAR ]
272 Flags: [ EF_AMDGPU_MACH_R600_CYPRESS ]
283 Flags: [ EF_AMDGPU_MACH_R600_JUNIPER ]
294 Flags: [ EF_AMDGPU_MACH_R600_REDWOOD ]
305 Flags: [ EF_AMDGPU_MACH_R600_SUMO ]
316 Flags: [ EF_AMDGPU_MACH_R600_BARTS ]
327 Flags: [ EF_AMDGPU_MACH_R600_CAICOS ]
338 Flags: [ EF_AMDGPU_MACH_R600_CAYMAN ]
349 Flags: [ EF_AMDGPU_MACH_R600_TURKS ]
360 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX600 ]
371 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX601 ]
382 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX700 ]
393 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX701 ]
404 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX702 ]
415 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX703 ]
426 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX704 ]
437 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX801 ]
448 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX802 ]
459 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX803 ]
470 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX810 ]
481 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX900 ]
492 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX902 ]
503 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX904 ]
514 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX906 ]
525 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX908 ]
536 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX909 ]
547 Flags: [ EF_AMDGPU_MACH_AMDGCN_GFX1010 ]