Debian Codegraph @

llvm/test/tools/llvm-readobj/ELF/RISCV/note-gnu-property.yaml

raw
1 # RUN: yaml2obj %s -DBITS=32 -DPR_PADDING= -o %t1
2 # RUN: llvm-readelf --notes %t1 | FileCheck %s --check-prefix=GNU
3 # RUN: llvm-readobj --notes %t1 | FileCheck %s --check-prefix=LLVM
4
5 # RUN: yaml2obj %s -DBITS=64 -DPR_PADDING=00000000 -o %t2
6 # RUN: llvm-readelf --notes %t2 | FileCheck %s --check-prefix=GNU
7 # RUN: llvm-readobj --notes %t2 | FileCheck %s --check-prefix=LLVM
8
9 # GNU: Displaying notes found in: .note.gnu.property
10 # GNU-NEXT: Owner Data size Description
11 # GNU-NEXT: GNU 0x{{([0-9a-z]{8})}} NT_GNU_PROPERTY_TYPE_0 (property note)
12 # GNU-NEXT: Properties: RISC-V feature: ZICFILP-unlabeled, ZICFISS, ZICFILP-func-sig
13
14 # LLVM: NoteSections [
15 # LLVM-NEXT: NoteSection {
16 # LLVM-NEXT: Name: .note.gnu.property
17 # LLVM-NEXT: Offset:
18 # LLVM-NEXT: Size:
19 # LLVM-NEXT: Notes [
20 # LLVM-NEXT: {
21 # LLVM-NEXT: Owner: GNU
22 # LLVM-NEXT: Data size:
23 # LLVM-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)
24 # LLVM-NEXT: Property [
25 # LLVM-NEXT: RISC-V feature: ZICFILP-unlabeled, ZICFISS, ZICFILP-func-sig
26 # LLVM-NEXT: ]
27 # LLVM-NEXT: }
28 # LLVM-NEXT: ]
29 # LLVM-NEXT: }
30 # LLVM-NEXT: ]
31
32 --- !ELF
33 FileHeader:
34 Class: ELFCLASS[[BITS]]
35 Data: ELFDATA2LSB
36 Type: ET_REL
37 Machine: EM_RISCV
38 Sections:
39 - Name: .note.gnu.property
40 Type: SHT_NOTE
41 Flags: [ SHF_ALLOC ]
42 Notes:
43 - Name: 'GNU'
44 Desc: '000000c00400000007000000[[PR_PADDING]]'
45 Type: 5 # NT_GNU_PROPERTY_TYPE_0