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: 0x38
15 # LLVM-NEXT: Owner: AMDGPU
16 # LLVM-NEXT: Data size: 0x24
17 # LLVM-NEXT: Type: NT_AMDGPU_METADATA (AMDGPU Metadata)
18 # LLVM-NEXT: AMDGPU Metadata: Invalid AMDGPU Metadata
20 # LLVM-NEXT: amdhsa.kernels:
21 # LLVM-NEXT: - .name: test_kernel
29 # GNU: Displaying notes found in: .note.nt_amdgpu_metadata
30 # GNU-NEXT: Owner Data size Description
31 # GNU-NEXT: AMDGPU 0x00000024 NT_AMDGPU_METADATA (AMDGPU Metadata)
32 # GNU-NEXT: AMDGPU Metadata:
33 # GNU-NEXT: Invalid AMDGPU Metadata
35 # GNU-NEXT: amdhsa.kernels:
36 # GNU-NEXT: - .name: test_kernel
45 - Name: .note.nt_amdgpu_metadata
49 Type: NT_AMDGPU_METADATA
50 ## Desc contains 'amdhsa.kernels' without valid entries.
51 Desc: '81ae616d646873612e6b65726e656c739181a52e6e616d65ab746573745f6b65726e656c'