1 ## Check that we are able to dump RISC-V STO_* flags correctly when dumping symbols.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-readobj -s %t.o | FileCheck %s --check-prefix=LLVM
5 # RUN: llvm-readelf -s %t.o | FileCheck %s --check-prefix=GNU
9 # LLVM-NEXT: STO_RISCV_VARIANT_CC (0x80)
12 # LLVM: Other [ (0xC0)
13 # LLVM-NEXT: STO_RISCV_VARIANT_CC (0x80)
16 # LLVM: Other [ (0x83)
17 # LLVM-NEXT: STO_RISCV_VARIANT_CC (0x80)
18 # LLVM-NEXT: STV_PROTECTED (0x3)
21 # GNU: Symbol table '.symtab' contains 4 entries:
22 # GNU: 1: 0000000000000000 0 NOTYPE LOCAL DEFAULT [VARIANT_CC] UND foo1
23 # GNU-NEXT: 2: 0000000000000000 0 NOTYPE LOCAL DEFAULT [VARIANT_CC | 40] UND foo2
24 # GNU-NEXT: 3: 0000000000000000 0 NOTYPE LOCAL PROTECTED [VARIANT_CC] UND foo3
34 Other: [ STO_RISCV_VARIANT_CC ]
36 Other: [ STO_RISCV_VARIANT_CC, 0x40 ]
38 Other: [ STO_RISCV_VARIANT_CC, STV_PROTECTED ]