1 ## Test that note values are interpreted correctly for core files.
4 # RUN: yaml2obj %s -DTYPE=0x1 -o %t1.o
5 # RUN: llvm-readelf --notes %t1.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PRSTATUS (prstatus structure)"
6 # RUN: llvm-readobj --notes %t1.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PRSTATUS (prstatus structure)"
9 # RUN: yaml2obj %s -DTYPE=0x2 -o %t2.o
10 # RUN: llvm-readelf --notes %t2.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_FPREGSET (floating point registers)"
11 # RUN: llvm-readobj --notes %t2.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_FPREGSET (floating point registers)"
14 # RUN: yaml2obj %s -DTYPE=0x3 -o %t3.o
15 # RUN: llvm-readelf --notes %t3.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PRPSINFO (prpsinfo structure)"
16 # RUN: llvm-readobj --notes %t3.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PRPSINFO (prpsinfo structure)"
18 ## Check NT_TASKSTRUCT.
19 # RUN: yaml2obj %s -DTYPE=0x4 -o %t4.o
20 # RUN: llvm-readelf --notes %t4.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_TASKSTRUCT (task structure)"
21 # RUN: llvm-readobj --notes %t4.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_TASKSTRUCT (task structure)"
24 # RUN: yaml2obj %s -DTYPE=0x6 -o %t5.o
25 # RUN: llvm-readelf --notes %t5.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_AUXV (auxiliary vector)"
26 # RUN: llvm-readobj --notes %t5.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_AUXV (auxiliary vector)"
29 # RUN: yaml2obj %s -DTYPE=0xA -o %t6.o
30 # RUN: llvm-readelf --notes %t6.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PSTATUS (pstatus structure)"
31 # RUN: llvm-readobj --notes %t6.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PSTATUS (pstatus structure)"
34 # RUN: yaml2obj %s -DTYPE=0xC -o %t7.o
35 # RUN: llvm-readelf --notes %t7.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_FPREGS (floating point registers)"
36 # RUN: llvm-readobj --notes %t7.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_FPREGS (floating point registers)"
39 # RUN: yaml2obj %s -DTYPE=0xD -o %t8.o
40 # RUN: llvm-readelf --notes %t8.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PSINFO (psinfo structure)"
41 # RUN: llvm-readobj --notes %t8.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PSINFO (psinfo structure)"
43 ## Check NT_LWPSTATUS.
44 # RUN: yaml2obj %s -DTYPE=0x10 -o %t9.o
45 # RUN: llvm-readelf --notes %t9.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_LWPSTATUS (lwpstatus_t structure)"
46 # RUN: llvm-readobj --notes %t9.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_LWPSTATUS (lwpstatus_t structure)"
49 # RUN: yaml2obj %s -DTYPE=0x11 -o %t10.o
50 # RUN: llvm-readelf --notes %t10.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_LWPSINFO (lwpsinfo_t structure)"
51 # RUN: llvm-readobj --notes %t10.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_LWPSINFO (lwpsinfo_t structure)"
53 ## Check NT_WIN32PSTATUS.
54 # RUN: yaml2obj %s -DTYPE=0x12 -o %t11.o
55 # RUN: llvm-readelf --notes %t11.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_WIN32PSTATUS (win32_pstatus structure)"
56 # RUN: llvm-readobj --notes %t11.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_WIN32PSTATUS (win32_pstatus structure)"
58 ## Check ELF::NT_PPC_VMX.
59 # RUN: yaml2obj %s -DTYPE=0x100 -o %t12.o
60 # RUN: llvm-readelf --notes %t12.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_VMX (ppc Altivec registers)"
61 # RUN: llvm-readobj --notes %t12.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_VMX (ppc Altivec registers)"
63 ## Check ELF::NT_PPC_VSX.
64 # RUN: yaml2obj %s -DTYPE=0x102 -o %t13.o
65 # RUN: llvm-readelf --notes %t13.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_VSX (ppc VSX registers)"
66 # RUN: llvm-readobj --notes %t13.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_VSX (ppc VSX registers)"
68 ## Check ELF::NT_PPC_TAR.
69 # RUN: yaml2obj %s -DTYPE=0x103 -o %t14.o
70 # RUN: llvm-readelf --notes %t14.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TAR (ppc TAR register)"
71 # RUN: llvm-readobj --notes %t14.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TAR (ppc TAR register)"
73 ## Check ELF::NT_PPC_PPR.
74 # RUN: yaml2obj %s -DTYPE=0x104 -o %t15.o
75 # RUN: llvm-readelf --notes %t15.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_PPR (ppc PPR register)"
76 # RUN: llvm-readobj --notes %t15.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_PPR (ppc PPR register)"
78 ## Check ELF::NT_PPC_DSCR.
79 # RUN: yaml2obj %s -DTYPE=0x105 -o %t16.o
80 # RUN: llvm-readelf --notes %t16.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_DSCR (ppc DSCR register)"
81 # RUN: llvm-readobj --notes %t16.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_DSCR (ppc DSCR register)"
83 ## Check ELF::NT_PPC_EBB.
84 # RUN: yaml2obj %s -DTYPE=0x106 -o %t17.o
85 # RUN: llvm-readelf --notes %t17.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_EBB (ppc EBB registers)"
86 # RUN: llvm-readobj --notes %t17.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_EBB (ppc EBB registers)"
88 ## Check ELF::NT_PPC_PMU.
89 # RUN: yaml2obj %s -DTYPE=0x107 -o %t18.o
90 # RUN: llvm-readelf --notes %t18.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_PMU (ppc PMU registers)"
91 # RUN: llvm-readobj --notes %t18.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_PMU (ppc PMU registers)"
93 ## Check ELF::NT_PPC_TM_CGPR.
94 # RUN: yaml2obj %s -DTYPE=0x108 -o %t19.o
95 # RUN: llvm-readelf --notes %t19.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CGPR (ppc checkpointed GPR registers)"
96 # RUN: llvm-readobj --notes %t19.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CGPR (ppc checkpointed GPR registers)"
98 ## Check ELF::NT_PPC_TM_CFPR.
99 # RUN: yaml2obj %s -DTYPE=0x109 -o %t20.o
100 # RUN: llvm-readelf --notes %t20.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CFPR (ppc checkpointed floating point registers)"
101 # RUN: llvm-readobj --notes %t20.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CFPR (ppc checkpointed floating point registers)"
103 ## Check ELF::NT_PPC_TM_CVMX.
104 # RUN: yaml2obj %s -DTYPE=0x10a -o %t21.o
105 # RUN: llvm-readelf --notes %t21.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CVMX (ppc checkpointed Altivec registers)"
106 # RUN: llvm-readobj --notes %t21.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CVMX (ppc checkpointed Altivec registers)"
108 ## Check ELF::NT_PPC_TM_CVSX.
109 # RUN: yaml2obj %s -DTYPE=0x10b -o %t22.o
110 # RUN: llvm-readelf --notes %t22.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CVSX (ppc checkpointed VSX registers)"
111 # RUN: llvm-readobj --notes %t22.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CVSX (ppc checkpointed VSX registers)"
113 ## Check ELF::NT_PPC_TM_SPR.
114 # RUN: yaml2obj %s -DTYPE=0x10c -o %t23.o
115 # RUN: llvm-readelf --notes %t23.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_SPR (ppc TM special purpose registers)"
116 # RUN: llvm-readobj --notes %t23.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_SPR (ppc TM special purpose registers)"
118 ## Check ELF::NT_PPC_TM_CTAR.
119 # RUN: yaml2obj %s -DTYPE=0x10d -o %t24.o
120 # RUN: llvm-readelf --notes %t24.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CTAR (ppc checkpointed TAR register)"
121 # RUN: llvm-readobj --notes %t24.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CTAR (ppc checkpointed TAR register)"
123 ## Check ELF::NT_PPC_TM_CPPR.
124 # RUN: yaml2obj %s -DTYPE=0x10e -o %t25.o
125 # RUN: llvm-readelf --notes %t25.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CPPR (ppc checkpointed PPR register)"
126 # RUN: llvm-readobj --notes %t25.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CPPR (ppc checkpointed PPR register)"
128 ## Check ELF::NT_PPC_TM_CDSCR.
129 # RUN: yaml2obj %s -DTYPE=0x10f -o %t26.o
130 # RUN: llvm-readelf --notes %t26.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PPC_TM_CDSCR (ppc checkpointed DSCR register)"
131 # RUN: llvm-readobj --notes %t26.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PPC_TM_CDSCR (ppc checkpointed DSCR register)"
133 ## Check ELF::NT_386_TLS.
134 # RUN: yaml2obj %s -DTYPE=0x200 -o %t27.o
135 # RUN: llvm-readelf --notes %t27.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_386_TLS (x86 TLS information)"
136 # RUN: llvm-readobj --notes %t27.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_386_TLS (x86 TLS information)"
138 ## Check ELF::NT_386_IOPERM.
139 # RUN: yaml2obj %s -DTYPE=0x201 -o %t28.o
140 # RUN: llvm-readelf --notes %t28.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_386_IOPERM (x86 I/O permissions)"
141 # RUN: llvm-readobj --notes %t28.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_386_IOPERM (x86 I/O permissions)"
143 ## Check ELF::NT_X86_XSTATE.
144 # RUN: yaml2obj %s -DTYPE=0x202 -o %t29.o
145 # RUN: llvm-readelf --notes %t29.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_X86_XSTATE (x86 XSAVE extended state)"
146 # RUN: llvm-readobj --notes %t29.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_X86_XSTATE (x86 XSAVE extended state)"
148 ## Check ELF::NT_S390_HIGH_GPRS.
149 # RUN: yaml2obj %s -DTYPE=0x300 -o %t30.o
150 # RUN: llvm-readelf --notes %t30.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_HIGH_GPRS (s390 upper register halves)"
151 # RUN: llvm-readobj --notes %t30.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_HIGH_GPRS (s390 upper register halves)"
153 ## Check ELF::NT_S390_TIMER.
154 # RUN: yaml2obj %s -DTYPE=0x301 -o %t31.o
155 # RUN: llvm-readelf --notes %t31.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_TIMER (s390 timer register)"
156 # RUN: llvm-readobj --notes %t31.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_TIMER (s390 timer register)"
158 ## Check ELF::NT_S390_TODCMP.
159 # RUN: yaml2obj %s -DTYPE=0x302 -o %t32.o
160 # RUN: llvm-readelf --notes %t32.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_TODCMP (s390 TOD comparator register)"
161 # RUN: llvm-readobj --notes %t32.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_TODCMP (s390 TOD comparator register)"
163 ## Check ELF::NT_S390_TODPREG.
164 # RUN: yaml2obj %s -DTYPE=0x303 -o %t33.o
165 # RUN: llvm-readelf --notes %t33.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_TODPREG (s390 TOD programmable register)"
166 # RUN: llvm-readobj --notes %t33.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_TODPREG (s390 TOD programmable register)"
168 ## Check ELF::NT_S390_CTRS.
169 # RUN: yaml2obj %s -DTYPE=0x304 -o %t34.o
170 # RUN: llvm-readelf --notes %t34.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_CTRS (s390 control registers)"
171 # RUN: llvm-readobj --notes %t34.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_CTRS (s390 control registers)"
173 ## Check ELF::NT_S390_PREFIX.
174 # RUN: yaml2obj %s -DTYPE=0x305 -o %t35.o
175 # RUN: llvm-readelf --notes %t35.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_PREFIX (s390 prefix register)"
176 # RUN: llvm-readobj --notes %t35.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_PREFIX (s390 prefix register)"
178 ## Check ELF::NT_S390_LAST_BREAK.
179 # RUN: yaml2obj %s -DTYPE=0x306 -o %t36.o
180 # RUN: llvm-readelf --notes %t36.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_LAST_BREAK (s390 last breaking event address)"
181 # RUN: llvm-readobj --notes %t36.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_LAST_BREAK (s390 last breaking event address)"
183 ## Check ELF::NT_S390_SYSTEM_CALL.
184 # RUN: yaml2obj %s -DTYPE=0x307 -o %t37.o
185 # RUN: llvm-readelf --notes %t37.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_SYSTEM_CALL (s390 system call restart data)"
186 # RUN: llvm-readobj --notes %t37.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_SYSTEM_CALL (s390 system call restart data)"
188 ## Check ELF::NT_S390_TDB.
189 # RUN: yaml2obj %s -DTYPE=0x308 -o %t38.o
190 # RUN: llvm-readelf --notes %t38.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_TDB (s390 transaction diagnostic block)"
191 # RUN: llvm-readobj --notes %t38.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_TDB (s390 transaction diagnostic block)"
193 ## Check ELF::NT_S390_VXRS_LOW.
194 # RUN: yaml2obj %s -DTYPE=0x309 -o %t39.o
195 # RUN: llvm-readelf --notes %t39.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_VXRS_LOW (s390 vector registers 0-15 upper half)"
196 # RUN: llvm-readobj --notes %t39.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_VXRS_LOW (s390 vector registers 0-15 upper half)"
198 ## Check ELF::NT_S390_VXRS_HIGH.
199 # RUN: yaml2obj %s -DTYPE=0x30a -o %t40.o
200 # RUN: llvm-readelf --notes %t40.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_VXRS_HIGH (s390 vector registers 16-31)"
201 # RUN: llvm-readobj --notes %t40.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_VXRS_HIGH (s390 vector registers 16-31)"
203 ## Check ELF::NT_S390_GS_CB.
204 # RUN: yaml2obj %s -DTYPE=0x30b -o %t41.o
205 # RUN: llvm-readelf --notes %t41.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_GS_CB (s390 guarded-storage registers)"
206 # RUN: llvm-readobj --notes %t41.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_GS_CB (s390 guarded-storage registers)"
208 ## Check ELF::NT_S390_GS_BC.
209 # RUN: yaml2obj %s -DTYPE=0x30c -o %t42.o
210 # RUN: llvm-readelf --notes %t42.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_S390_GS_BC (s390 guarded-storage broadcast control)"
211 # RUN: llvm-readobj --notes %t42.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_S390_GS_BC (s390 guarded-storage broadcast control)"
213 ## Check ELF::NT_ARM_VFP.
214 # RUN: yaml2obj %s -DTYPE=0x400 -o %t43.o
215 # RUN: llvm-readelf --notes %t43.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_VFP (arm VFP registers)"
216 # RUN: llvm-readobj --notes %t43.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_VFP (arm VFP registers)"
218 ## Check ELF::NT_ARM_TLS.
219 # RUN: yaml2obj %s -DTYPE=0x401 -o %t44.o
220 # RUN: llvm-readelf --notes %t44.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_TLS (AArch TLS registers)"
221 # RUN: llvm-readobj --notes %t44.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_TLS (AArch TLS registers)"
223 ## Check ELF::NT_ARM_HW_BREAK.
224 # RUN: yaml2obj %s -DTYPE=0x402 -o %t45.o
225 # RUN: llvm-readelf --notes %t45.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_HW_BREAK (AArch hardware breakpoint registers)"
226 # RUN: llvm-readobj --notes %t45.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_HW_BREAK (AArch hardware breakpoint registers)"
228 ## Check ELF::NT_ARM_HW_WATCH.
229 # RUN: yaml2obj %s -DTYPE=0x403 -o %t46.o
230 # RUN: llvm-readelf --notes %t46.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_HW_WATCH (AArch hardware watchpoint registers)"
231 # RUN: llvm-readobj --notes %t46.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_HW_WATCH (AArch hardware watchpoint registers)"
233 ## Check ELF::NT_ARM_SVE
234 # RUN: yaml2obj %s -DTYPE=0x405 -o %t47.o
235 # RUN: llvm-readelf --notes %t47.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_SVE (AArch64 SVE registers)"
236 # RUN: llvm-readobj --notes %t47.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_SVE (AArch64 SVE registers)"
238 ## Check ELF::NT_ARM_PAC_MASK
239 # RUN: yaml2obj %s -DTYPE=0x406 -o %t48.o
240 # RUN: llvm-readelf --notes %t48.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_PAC_MASK (AArch64 Pointer Authentication code masks)"
241 # RUN: llvm-readobj --notes %t48.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_PAC_MASK (AArch64 Pointer Authentication code masks)"
243 ## Check ELF::NT_ARM_TAGGED_ADDR_CTRL
244 # RUN: yaml2obj %s -DTYPE=0x409 -o %t49.o
245 # RUN: llvm-readelf --notes %t49.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_TAGGED_ADDR_CTRL (AArch64 Tagged Address Control)"
246 # RUN: llvm-readobj --notes %t49.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_TAGGED_ADDR_CTRL (AArch64 Tagged Address Control)"
248 ## Check ELF::NT_ARM_SSVE
249 # RUN: yaml2obj %s -DTYPE=0x40b -o %t50.o
250 # RUN: llvm-readelf --notes %t50.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_SSVE (AArch64 Streaming SVE registers)"
251 # RUN: llvm-readobj --notes %t50.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_SSVE (AArch64 Streaming SVE registers)"
253 ## Check ELF::NT_ARM_ZA
254 # RUN: yaml2obj %s -DTYPE=0x40c -o %t51.o
255 # RUN: llvm-readelf --notes %t51.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_ZA (AArch64 SME ZA registers)"
256 # RUN: llvm-readobj --notes %t51.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_ZA (AArch64 SME ZA registers)"
258 ## Check ELF::NT_ARM_ZT
259 # RUN: yaml2obj %s -DTYPE=0x40d -o %t52.o
260 # RUN: llvm-readelf --notes %t52.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_ARM_ZT (AArch64 SME ZT registers)"
261 # RUN: llvm-readobj --notes %t52.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_ARM_ZT (AArch64 SME ZT registers)"
263 ## Check ELF::NT_FILE.
264 # RUN: yaml2obj %s -DTYPE=0x46494c45 -o %t53.o
265 # RUN: llvm-readelf --notes %t53.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_FILE (mapped files)"
266 # RUN: llvm-readobj --notes %t53.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_FILE (mapped files)"
268 ## Check ELF::NT_PRXFPREG.
269 # RUN: yaml2obj %s -DTYPE=0x46e62b7f -o %t54.o
270 # RUN: llvm-readelf --notes %t54.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_PRXFPREG (user_xfpregs structure)"
271 # RUN: llvm-readobj --notes %t54.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_PRXFPREG (user_xfpregs structure)"
273 ## Check ELF::NT_SIGINFO.
274 # RUN: yaml2obj %s -DTYPE=0x53494749 -o %t55.o
275 # RUN: llvm-readelf --notes %t55.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="NT_SIGINFO (siginfo_t data)"
276 # RUN: llvm-readobj --notes %t55.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="NT_SIGINFO (siginfo_t data)"
278 ## Check an arbitrary unknown type.
279 # RUN: yaml2obj %s -DTYPE=0x12345678 -o %t56.o
280 # RUN: llvm-readelf --notes %t56.o | FileCheck %s --check-prefix=CHECK-GNU -DDESC="Unknown note type: (0x12345678)"
281 # RUN: llvm-readobj --notes %t56.o | FileCheck %s --check-prefix=CHECK-LLVM -DDESC="Unknown (0x12345678)"
283 # CHECK-GNU: Owner Data size Description
284 # CHECK-GNU-NEXT: CORE 0x00000000 [[DESC]]
288 # CHECK-LLVM-NEXT: Owner: CORE
289 # CHECK-LLVM-NEXT: Data size: 0x0
290 # CHECK-LLVM-NEXT: Type: [[DESC]]