Automatic date update in version.in
[binutils-gdb.git] / ld / testsuite / ld-powerpc / tocopt8.s
blob1d71b2866b5fced15956da06d02612f75a614511
1 .section .toc,"aw"
2 x4t:
3 .quad x4
4 x5t:
5 .quad x5
7 .section .sdata,"aw"
8 .p2align 4
9 x1:
10 .quad 1
11 x2:
12 .quad 2
13 x3:
14 .quad 3
15 x4:
16 .quad 4
17 x5:
18 .quad 5
19 x6:
20 .quad 6
22 .globl _start
23 .text
24 _start:
25 # no need for got entry, optimise to nop,addi
26 addis 9,2,x1@got@ha
27 ld 9,x1@got@l(9)
28 # must keep got entry, optimise to nop,addi,ld
29 addis 4,2,x2@got@ha
30 addi 5,4,x2@got@l
31 ld 6,0(5)
32 # no need for toc entry, optimise to nop,addi
33 addis 9,2,x4t@toc@ha
34 ld 9,x4t@toc@l(9)
35 # must keep toc entry, optimise to nop,addi,ld
36 # if we had a reloc tying the ld to x5/x5t then we could throw away
37 # the toc entry and optimise to nop,nop,addi
38 addis 4,2,x5t@toc@ha
39 addi 5,4,x5t@toc@l
40 ld 6,0(5)
41 # keep toc entry due to other accesses to x5t, optimise to nop,ld
42 addis 9,2,x5t@toc@ha
43 ld 9,x5t@toc@l(9)
45 addis 4,2,x2@got@ha
46 addi 5,4,x2@got@l
47 lwz 6,0(5)
48 addis 9,2,x1@toc@ha
49 lwz 9,x1@toc@l(9)
50 addis 4,2,x5t@toc@ha
51 addi 5,4,x5t@toc@l
52 lwz 6,0(5)
54 addis 4,2,x2@got@ha
55 addi 5,4,x2@got@l
56 lwa 6,0(5)
57 addis 9,2,x1@toc@ha
58 lwa 9,x1@toc@l(9)
59 addis 4,2,x5t@toc@ha
60 addi 5,4,x5t@toc@l
61 lwa 6,0(5)
63 addis 4,2,x2@got@ha
64 addi 5,4,x2@got@l
65 lhz 6,0(5)
66 addis 9,2,x1@toc@ha
67 lhz 9,x1@toc@l(9)
68 addis 4,2,x5t@toc@ha
69 addi 5,4,x5t@toc@l
70 lhz 6,0(5)
72 addis 4,2,x2@got@ha
73 addi 5,4,x2@got@l
74 lha 6,0(5)
75 addis 9,2,x1@toc@ha
76 lha 9,x1@toc@l(9)
77 addis 4,2,x5t@toc@ha
78 addi 5,4,x5t@toc@l
79 lha 6,0(5)
81 addis 4,2,x2@got@ha
82 addi 5,4,x2@got@l
83 lbz 6,0(5)
84 addis 9,2,x1@toc@ha
85 lbz 9,x1@toc@l(9)
86 addis 4,2,x5t@toc@ha
87 addi 5,4,x5t@toc@l
88 lbz 6,0(5)
90 addis 4,2,x2@got@ha
91 addi 5,4,x2@got@l
92 lfs 6,0(5)
93 addis 9,2,x1@toc@ha
94 lfs 9,x1@toc@l(9)
95 addis 4,2,x5t@toc@ha
96 addi 5,4,x5t@toc@l
97 lfs 6,0(5)
99 addis 4,2,x2@got@ha
100 addi 5,4,x2@got@l
101 lfd 6,0(5)
102 addis 9,2,x1@toc@ha
103 lfd 9,x1@toc@l(9)
104 addis 4,2,x5t@toc@ha
105 addi 5,4,x5t@toc@l
106 lfd 6,0(5)
108 addis 4,2,x2@got@ha
109 addi 5,4,x2@got@l
110 lxv 6,0(5)
111 addis 9,2,x1@toc@ha
112 lxv 9,x1@toc@l(9)
113 addis 4,2,x1@toc@ha
114 addi 5,4,x1@toc@l
115 lxv 6,0(5)
117 addis 4,2,x2@got@ha
118 addi 5,4,x2@got@l
119 lxsd 6,0(5)
120 addis 9,2,x1@toc@ha
121 lxsd 9,x1@toc@l(9)
122 addis 4,2,x5t@toc@ha
123 addi 5,4,x5t@toc@l
124 lxsd 6,0(5)
126 addis 4,2,x2@got@ha
127 addi 5,4,x2@got@l
128 lxssp 6,0(5)
129 addis 9,2,x1@toc@ha
130 lxssp 9,x1@toc@l(9)
131 addis 4,2,x5t@toc@ha
132 addi 5,4,x5t@toc@l
133 lxssp 6,0(5)
135 addis 9,2,x1@toc@ha
136 std 9,x1@toc@l(9)
137 addis 4,2,x5t@toc@ha
138 addi 5,4,x5t@toc@l
139 std 6,0(5)
141 addis 9,2,x1@toc@ha
142 stw 9,x1@toc@l(9)
143 addis 4,2,x5t@toc@ha
144 addi 5,4,x5t@toc@l
145 stw 6,0(5)
147 addis 9,2,x1@toc@ha
148 sth 9,x1@toc@l(9)
149 addis 4,2,x5t@toc@ha
150 addi 5,4,x5t@toc@l
151 sth 6,0(5)
153 addis 9,2,x1@toc@ha
154 stb 9,x1@toc@l(9)
155 addis 4,2,x5t@toc@ha
156 addi 5,4,x5t@toc@l
157 stb 6,0(5)
159 addis 9,2,x1@toc@ha
160 stfs 9,x1@toc@l(9)
161 addis 4,2,x5t@toc@ha
162 addi 5,4,x5t@toc@l
163 stfs 6,0(5)
165 addis 9,2,x1@toc@ha
166 stfd 9,x1@toc@l(9)
167 addis 4,2,x5t@toc@ha
168 addi 5,4,x5t@toc@l
169 stfd 6,0(5)
171 addis 9,2,x1@toc@ha
172 stxv 9,x1@toc@l(9)
173 addis 4,2,x1@toc@ha
174 addi 5,4,x1@toc@l
175 stxv 6,0(5)
177 addis 9,2,x1@toc@ha
178 stxsd 9,x1@toc@l(9)
179 addis 4,2,x5t@toc@ha
180 addi 5,4,x5t@toc@l
181 stxsd 6,0(5)
183 addis 9,2,x1@toc@ha
184 stxssp 9,x1@toc@l(9)
185 addis 4,2,x5t@toc@ha
186 addi 5,4,x5t@toc@l
187 stxssp 6,0(5)