xref: /llvm-project/llvm/test/tools/obj2yaml/ELF/riscv-sym-other.yaml (revision 8971b99c8387f3daf2e802956f2688b3b77335a4)
1## Check RISC-V st_other extension support.
2
3# RUN: yaml2obj %s -o %t
4# RUN: obj2yaml %t | FileCheck %s
5
6# CHECK: Symbols:
7# CHECK:  - Name:  foo1
8# CHECK:    Other: [ STO_RISCV_VARIANT_CC ]
9# CHECK:  - Name:  foo2
10# CHECK:    Other: [ STO_RISCV_VARIANT_CC, 64 ]
11
12--- !ELF
13FileHeader:
14  Class:   ELFCLASS64
15  Data:    ELFDATA2LSB
16  Type:    ET_REL
17  Machine: EM_RISCV
18Symbols:
19  - Name:  foo1
20    Other: [ STO_RISCV_VARIANT_CC ]
21  - Name:  foo2
22    Other: [ STO_RISCV_VARIANT_CC, 0x40 ]
23