[TableGen] Fix validateOperandClass for non Phyical Reg (#118146)
[llvm-project.git] / llvm / test / tools / llvm-nm / format-sysv-binding.test
blob2960c72a85a9cc77cbce6c844fa0d232298f0f55
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: llvm-nm %t.o --format=sysv | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:   ELFCLASS64
7   Data:    ELFDATA2LSB
8   Type:    ET_REL
9   Machine: EM_X86_64
10 Sections:
11   - Name:  .text
12     Type:  SHT_PROGBITS
13     Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
14 Symbols:
15   - Name:    local_binding
16     Binding: STB_LOCAL
17     Section: .text
18     Value:   0xbeef
19   - Name:    global_binding
20     Binding: STB_GLOBAL
21     Section: .text
22   - Name:    weak_binding
23     Binding: STB_WEAK
24     Section: .text
25   - Name:    unrecognised_binding
26     Binding: 5
27     Section: .text
28   - Name:    gnu_unique_binding
29     Binding: 10
30     Section: .text
31   - Name:    os_binding
32     Binding: 11
33     Section: .text
34   - Name:    proc_binding
35     Binding: 14
36     Section: .text
38 # CHECK:      global_binding      {{.*}}|   T  |
39 # CHECK-NEXT: gnu_unique_binding  {{.*}}|   u  |
40 # CHECK-NEXT: local_binding       {{.*}}|   t  |
41 # CHECK-NEXT: os_binding          {{.*}}|   ?  |
42 # CHECK-NEXT: proc_binding        {{.*}}|   ?  |
43 # CHECK-NEXT: unrecognised_binding{{.*}}|   ?  |
44 # CHECK-NEXT: weak_binding        {{.*}}|   W  |