[InstCombine] Remove insertRangeTest code that handles the equality case.
[llvm-complete.git] / test / Object / yaml2obj-elf-symbol-visibility.yaml
blob935b9443933051612e07157dbec21e7697ad1993
1 # RUN: yaml2obj %s | llvm-readobj --symbols - | \
2 # RUN:   FileCheck --check-prefix OBJ %s
3 # RUN: yaml2obj %s | obj2yaml - | FileCheck --check-prefix YAML %s
5 # OBJ:      Symbol {
6 # OBJ:        Name: default1 (36)
7 # OBJ-NEXT:   Value: 0x0
8 # OBJ-NEXT:   Size: 4
9 # OBJ-NEXT:   Binding: Global (0x1)
10 # OBJ-NEXT:   Type: Object (0x1)
11 # OBJ-NEXT:   Other: 0
12 # OBJ-NEXT:   Section: .data (0x1)
13 # OBJ-NEXT: }
14 # OBJ-NEXT: Symbol {
15 # OBJ-NEXT:   Name: default2 (27)
16 # OBJ-NEXT:   Value: 0x4
17 # OBJ-NEXT:   Size: 4
18 # OBJ-NEXT:   Binding: Global (0x1)
19 # OBJ-NEXT:   Type: Object (0x1)
20 # OBJ-NEXT:   Other: 0
21 # OBJ-NEXT:   Section: .data (0x1)
22 # OBJ-NEXT: }
23 # OBJ-NEXT: Symbol {
24 # OBJ-NEXT:   Name: internal (8)
25 # OBJ-NEXT:   Value: 0x8
26 # OBJ-NEXT:   Size: 4
27 # OBJ-NEXT:   Binding: Global (0x1)
28 # OBJ-NEXT:   Type: Object (0x1)
29 # OBJ-NEXT:   Other [ (0x1)
30 # OBJ-NEXT:     STV_INTERNAL
31 # OBJ-NEXT:   ]
32 # OBJ-NEXT:   Section: .data (0x1)
33 # OBJ-NEXT: }
34 # OBJ-NEXT: Symbol {
35 # OBJ-NEXT:   Name: hidden (1)
36 # OBJ-NEXT:   Value: 0xC
37 # OBJ-NEXT:   Size: 4
38 # OBJ-NEXT:   Binding: Global (0x1)
39 # OBJ-NEXT:   Type: Object (0x1)
40 # OBJ-NEXT:   Other [ (0x2)
41 # OBJ-NEXT:     STV_HIDDEN
42 # OBJ-NEXT:   ]
43 # OBJ-NEXT:   Section: .data (0x1)
44 # OBJ-NEXT: }
45 # OBJ-NEXT: Symbol {
46 # OBJ-NEXT:   Name: protected (17)
47 # OBJ-NEXT:   Value: 0x10
48 # OBJ-NEXT:   Size: 4
49 # OBJ-NEXT:   Binding: Global (0x1)
50 # OBJ-NEXT:   Type: Object (0x1)
51 # OBJ-NEXT:   Other [ (0xA3)
52 # OBJ-NEXT:     STO_MIPS_MICROMIPS
53 # OBJ-NEXT:     STO_MIPS_PIC
54 # OBJ-NEXT:     STV_PROTECTED
55 # OBJ-NEXT:   ]
56 # OBJ-NEXT:   Section: .data (0x1)
57 # OBJ-NEXT: }
59 # YAML:      Symbols:
60 # YAML-NEXT:   - Name:            default1
61 # YAML-NEXT:     Type:            STT_OBJECT
62 # YAML-NEXT:     Section:         .data
63 # YAML-NEXT:     Binding:         STB_GLOBAL
64 # YAML-NEXT:     Size:            0x0000000000000004
65 # YAML-NEXT:   - Name:            default2
66 # YAML-NEXT:     Type:            STT_OBJECT
67 # YAML-NEXT:     Section:         .data
68 # YAML-NEXT:     Binding:         STB_GLOBAL
69 # YAML-NEXT:     Value:           0x0000000000000004
70 # YAML-NEXT:     Size:            0x0000000000000004
71 # YAML-NEXT:   - Name:            internal
72 # YAML-NEXT:     Type:            STT_OBJECT
73 # YAML-NEXT:     Section:         .data
74 # YAML-NEXT:     Binding:         STB_GLOBAL
75 # YAML-NEXT:     Value:           0x0000000000000008
76 # YAML-NEXT:     Size:            0x0000000000000004
77 # YAML-NEXT:     Visibility:      STV_INTERNAL
78 # YAML-NEXT:   - Name:            hidden
79 # YAML-NEXT:     Type:            STT_OBJECT
80 # YAML-NEXT:     Section:         .data
81 # YAML-NEXT:     Binding:         STB_GLOBAL
82 # YAML-NEXT:     Value:           0x000000000000000C
83 # YAML-NEXT:     Size:            0x0000000000000004
84 # YAML-NEXT:     Visibility:      STV_HIDDEN
85 # YAML-NEXT:   - Name:            protected
86 # YAML-NEXT:     Type:            STT_OBJECT
87 # YAML-NEXT:     Section:         .data
88 # YAML-NEXT:     Binding:         STB_GLOBAL
89 # YAML-NEXT:     Value:           0x0000000000000010
90 # YAML-NEXT:     Size:            0x0000000000000004
91 # YAML-NEXT:     Visibility:      STV_PROTECTED
92 # YAML-NEXT:     Other:           [ STO_MIPS_PIC, STO_MIPS_MICROMIPS ]
94 --- !ELF
95 FileHeader:
96   Class:           ELFCLASS32
97   Data:            ELFDATA2LSB
98   Type:            ET_REL
99   Machine:         EM_MIPS
100   Flags:           [ EF_MIPS_ABI_O32, EF_MIPS_ARCH_32 ]
102 Sections:
103   - Name:            .data
104     Type:            SHT_PROGBITS
105     Flags:           [ SHF_ALLOC, SHF_WRITE ]
106     AddressAlign:    0x04
107     Size:            0x14
109 Symbols:
110   - Name:            default1
111     Type:            STT_OBJECT
112     Visibility:      STV_DEFAULT
113     Section:         .data
114     Value:           0x00
115     Size:            0x04
116     Binding:         STB_GLOBAL
117   - Name:            default2
118     Type:            STT_OBJECT
119     Section:         .data
120     Value:           0x04
121     Size:            0x04
122     Binding:         STB_GLOBAL
123   - Name:            internal
124     Type:            STT_OBJECT
125     Visibility:      STV_INTERNAL
126     Section:         .data
127     Value:           0x08
128     Size:            0x04
129     Binding:         STB_GLOBAL
130   - Name:            hidden
131     Type:            STT_OBJECT
132     Visibility:      STV_HIDDEN
133     Section:         .data
134     Value:           0x0C
135     Size:            0x04
136     Binding:         STB_GLOBAL
137   - Name:            protected
138     Type:            STT_OBJECT
139     Visibility:      STV_PROTECTED
140     Other:           [ STO_MIPS_MICROMIPS, STO_MIPS_PIC ]
141     Section:         .data
142     Value:           0x10
143     Size:            0x04
144     Binding:         STB_GLOBAL