1 ## This test is checking the handling of invalid/malformed note entries for
2 ## AMDGPU code object v3.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: llvm-readobj --notes %t.o | FileCheck %s --match-full-lines --check-prefix=LLVM
6 # RUN: llvm-readelf --notes %t.o | FileCheck %s --match-full-lines --check-prefix=GNU
9 # LLVM-NEXT: NoteSection {
10 # LLVM-NEXT: Name: .note.nt_amdgpu_metadata
11 # LLVM-NEXT: Offset: 0x40
12 # LLVM-NEXT: Size: 0x28
14 # LLVM-NEXT: Owner: AMDGPU
15 # LLVM-NEXT: Data size: 0x11
16 # LLVM-NEXT: Type: NT_AMDGPU_METADATA (AMDGPU Metadata)
17 # LLVM-NEXT: AMDGPU Metadata: Invalid AMDGPU Metadata
20 # LLVM-NEXT: amdhsa.kernels:
28 # GNU: Displaying notes found in: .note.nt_amdgpu_metadata
29 # GNU-NEXT: Owner Data size Description
30 # GNU-NEXT: AMDGPU 0x00000011 NT_AMDGPU_METADATA (AMDGPU Metadata)
31 # GNU-NEXT: AMDGPU Metadata:
32 # GNU-NEXT: Invalid AMDGPU Metadata
35 # GNU-NEXT: amdhsa.kernels:
45 - Name: .note.nt_amdgpu_metadata
49 Type: NT_AMDGPU_METADATA
50 ## Desc contains 'amdhsa.kernels' without valid entries.
51 Desc: '82ae616d646873612e6b65726e656c7391'