Commit | Line | Data |
---|---|---|
3f3467ff MR |
1 | # Source file used to test li/addi on MIPS16e2 |
2 | ||
3 | .set mips16 | |
4 | ||
5 | .data | |
6 | data_label: | |
7 | .word 0 | |
8 | data_label2: | |
9 | .word 0 | |
10 | ||
11 | .extern big_external_data_label,1000 | |
12 | .extern small_external_data_label,1 | |
13 | .comm big_external_common,1000 | |
14 | .comm small_external_common,1 | |
15 | .lcomm big_local_common,1000 | |
16 | .lcomm small_local_common,1 | |
17 | ||
18 | .text | |
19 | stuff: | |
20 | lui $4,%hi(0) | |
21 | addiu $4,%lo(0) | |
22 | lui $4,%hi(data_label) | |
23 | addiu $4,%lo(data_label) | |
24 | lui $4,%hi(data_label2) | |
25 | addiu $4,%lo(data_label2) | |
26 | lui $4,%hi(big_external_data_label) | |
27 | addiu $4,%lo(big_external_data_label) | |
28 | lui $4,%hi(small_external_data_label) | |
29 | addiu $4,%lo(small_external_data_label) | |
30 | lui $4,%hi(big_external_common) | |
31 | addiu $4,%lo(big_external_common) | |
32 | lui $4,%hi(small_external_common) | |
33 | addiu $4,%lo(small_external_common) | |
34 | lui $4,%hi(big_local_common) | |
35 | addiu $4,%lo(big_local_common) | |
36 | lui $4,%hi(small_local_common) | |
37 | addiu $4,%lo(small_local_common) | |
38 | lui $4,%hi(1) | |
39 | addiu $4,%lo(1) | |
40 | lui $4,%hi(data_label+1) | |
41 | addiu $4,%lo(data_label+1) | |
42 | lui $4,%hi(data_label2+1) | |
43 | addiu $4,%lo(data_label2+1) | |
44 | lui $4,%hi(big_external_data_label+1) | |
45 | addiu $4,%lo(big_external_data_label+1) | |
46 | lui $4,%hi(small_external_data_label+1) | |
47 | addiu $4,%lo(small_external_data_label+1) | |
48 | lui $4,%hi(big_external_common+1) | |
49 | addiu $4,%lo(big_external_common+1) | |
50 | lui $4,%hi(small_external_common+1) | |
51 | addiu $4,%lo(small_external_common+1) | |
52 | lui $4,%hi(big_local_common+1) | |
53 | addiu $4,%lo(big_local_common+1) | |
54 | lui $4,%hi(small_local_common+1) | |
55 | addiu $4,%lo(small_local_common+1) | |
56 | lui $4,%hi(0x8000) | |
57 | addiu $4,%lo(0x8000) | |
58 | lui $4,%hi(data_label+0x8000) | |
59 | addiu $4,%lo(data_label+0x8000) | |
60 | lui $4,%hi(data_label2+0x8000) | |
61 | addiu $4,%lo(data_label2+0x8000) | |
62 | lui $4,%hi(big_external_data_label+0x8000) | |
63 | addiu $4,%lo(big_external_data_label+0x8000) | |
64 | lui $4,%hi(small_external_data_label+0x8000) | |
65 | addiu $4,%lo(small_external_data_label+0x8000) | |
66 | lui $4,%hi(big_external_common+0x8000) | |
67 | addiu $4,%lo(big_external_common+0x8000) | |
68 | lui $4,%hi(small_external_common+0x8000) | |
69 | addiu $4,%lo(small_external_common+0x8000) | |
70 | lui $4,%hi(big_local_common+0x8000) | |
71 | addiu $4,%lo(big_local_common+0x8000) | |
72 | lui $4,%hi(small_local_common+0x8000) | |
73 | addiu $4,%lo(small_local_common+0x8000) | |
74 | lui $4,%hi(-0x8000) | |
75 | addiu $4,%lo(-0x8000) | |
76 | lui $4,%hi(data_label-0x8000) | |
77 | addiu $4,%lo(data_label-0x8000) | |
78 | lui $4,%hi(data_label2-0x8000) | |
79 | addiu $4,%lo(data_label2-0x8000) | |
80 | lui $4,%hi(big_external_data_label-0x8000) | |
81 | addiu $4,%lo(big_external_data_label-0x8000) | |
82 | lui $4,%hi(small_external_data_label-0x8000) | |
83 | addiu $4,%lo(small_external_data_label-0x8000) | |
84 | lui $4,%hi(big_external_common-0x8000) | |
85 | addiu $4,%lo(big_external_common-0x8000) | |
86 | lui $4,%hi(small_external_common-0x8000) | |
87 | addiu $4,%lo(small_external_common-0x8000) | |
88 | lui $4,%hi(big_local_common-0x8000) | |
89 | addiu $4,%lo(big_local_common-0x8000) | |
90 | lui $4,%hi(small_local_common-0x8000) | |
91 | addiu $4,%lo(small_local_common-0x8000) | |
92 | lui $4,%hi(0x10000) | |
93 | addiu $4,%lo(0x10000) | |
94 | lui $4,%hi(data_label+0x10000) | |
95 | addiu $4,%lo(data_label+0x10000) | |
96 | lui $4,%hi(data_label2+0x10000) | |
97 | addiu $4,%lo(data_label2+0x10000) | |
98 | lui $4,%hi(big_external_data_label+0x10000) | |
99 | addiu $4,%lo(big_external_data_label+0x10000) | |
100 | lui $4,%hi(small_external_data_label+0x10000) | |
101 | addiu $4,%lo(small_external_data_label+0x10000) | |
102 | lui $4,%hi(big_external_common+0x10000) | |
103 | addiu $4,%lo(big_external_common+0x10000) | |
104 | lui $4,%hi(small_external_common+0x10000) | |
105 | addiu $4,%lo(small_external_common+0x10000) | |
106 | lui $4,%hi(big_local_common+0x10000) | |
107 | addiu $4,%lo(big_local_common+0x10000) | |
108 | lui $4,%hi(small_local_common+0x10000) | |
109 | addiu $4,%lo(small_local_common+0x10000) | |
110 | lui $4,%hi(0x1a5a5) | |
111 | addiu $4,%lo(0x1a5a5) | |
112 | lui $4,%hi(data_label+0x1a5a5) | |
113 | addiu $4,%lo(data_label+0x1a5a5) | |
114 | lui $4,%hi(data_label2+0x1a5a5) | |
115 | addiu $4,%lo(data_label2+0x1a5a5) | |
116 | lui $4,%hi(big_external_data_label+0x1a5a5) | |
117 | addiu $4,%lo(big_external_data_label+0x1a5a5) | |
118 | lui $4,%hi(small_external_data_label+0x1a5a5) | |
119 | addiu $4,%lo(small_external_data_label+0x1a5a5) | |
120 | lui $4,%hi(big_external_common+0x1a5a5) | |
121 | addiu $4,%lo(big_external_common+0x1a5a5) | |
122 | lui $4,%hi(small_external_common+0x1a5a5) | |
123 | addiu $4,%lo(small_external_common+0x1a5a5) | |
124 | lui $4,%hi(big_local_common+0x1a5a5) | |
125 | addiu $4,%lo(big_local_common+0x1a5a5) | |
126 | lui $4,%hi(small_local_common+0x1a5a5) | |
127 | addiu $4,%lo(small_local_common+0x1a5a5) | |
128 | lui $5,%hi(0) | |
129 | lw $4,%hi(0)($5) | |
130 | lui $5,%hi(data_label) | |
131 | lw $4,%hi(data_label)($5) | |
132 | lui $5,%hi(data_label2) | |
133 | lw $4,%hi(data_label2)($5) | |
134 | lui $5,%hi(big_external_data_label) | |
135 | lw $4,%lo(big_external_data_label)($5) | |
136 | lui $5,%hi(small_external_data_label) | |
137 | lw $4,%lo(small_external_data_label)($5) | |
138 | lui $5,%hi(big_external_common) | |
139 | lw $4,%lo(big_external_common)($5) | |
140 | lui $5,%hi(small_external_common) | |
141 | lw $4,%lo(small_external_common)($5) | |
142 | lui $5,%hi(big_local_common) | |
143 | lw $4,%lo(big_local_common)($5) | |
144 | lui $5,%hi(small_local_common) | |
145 | lw $4,%lo(small_local_common)($5) | |
146 | lui $5,%hi(1) | |
147 | lw $4,%lo(1)($5) | |
148 | lui $5,%hi(data_label+1) | |
149 | lw $4,%lo(data_label+1)($5) | |
150 | lui $5,%hi(data_label2+1) | |
151 | lw $4,%lo(data_label2+1)($5) | |
152 | lui $5,%hi(big_external_data_label+1) | |
153 | lw $4,%lo(big_external_data_label+1)($5) | |
154 | lui $5,%hi(small_external_data_label+1) | |
155 | lw $4,%lo(small_external_data_label+1)($5) | |
156 | lui $5,%hi(big_external_common+1) | |
157 | lw $4,%lo(big_external_common+1)($5) | |
158 | lui $5,%hi(small_external_common+1) | |
159 | lw $4,%lo(small_external_common+1)($5) | |
160 | lui $5,%hi(big_local_common+1) | |
161 | lw $4,%lo(big_local_common+1)($5) | |
162 | lui $5,%hi(small_local_common+1) | |
163 | lw $4,%lo(small_local_common+1)($5) | |
164 | lui $5,%hi(0x8000) | |
165 | lw $4,%lo(0x8000)($5) | |
166 | lui $5,%hi(data_label+0x8000) | |
167 | lw $4,%lo(data_label+0x8000)($5) | |
168 | lui $5,%hi(data_label2+0x8000) | |
169 | lw $4,%lo(data_label2+0x8000)($5) | |
170 | lui $5,%hi(big_external_data_label+0x8000) | |
171 | lw $4,%lo(big_external_data_label+0x8000)($5) | |
172 | lui $5,%hi(small_external_data_label+0x8000) | |
173 | lw $4,%lo(small_external_data_label+0x8000)($5) | |
174 | lui $5,%hi(big_external_common+0x8000) | |
175 | lw $4,%lo(big_external_common+0x8000)($5) | |
176 | lui $5,%hi(small_external_common+0x8000) | |
177 | lw $4,%lo(small_external_common+0x8000)($5) | |
178 | lui $5,%hi(big_local_common+0x8000) | |
179 | lw $4,%lo(big_local_common+0x8000)($5) | |
180 | lui $5,%hi(small_local_common+0x8000) | |
181 | lw $4,%lo(small_local_common+0x8000)($5) | |
182 | lui $5,%hi(-0x8000) | |
183 | lw $4,%lo(-0x8000)($5) | |
184 | lui $5,%hi(data_label-0x8000) | |
185 | lw $4,%lo(data_label-0x8000)($5) | |
186 | lui $5,%hi(data_label2-0x8000) | |
187 | lw $4,%lo(data_label2-0x8000)($5) | |
188 | lui $5,%hi(big_external_data_label-0x8000) | |
189 | lw $4,%lo(big_external_data_label-0x8000)($5) | |
190 | lui $5,%hi(small_external_data_label-0x8000) | |
191 | lw $4,%lo(small_external_data_label-0x8000)($5) | |
192 | lui $5,%hi(big_external_common-0x8000) | |
193 | lw $4,%lo(big_external_common-0x8000)($5) | |
194 | lui $5,%hi(small_external_common-0x8000) | |
195 | lw $4,%lo(small_external_common-0x8000)($5) | |
196 | lui $5,%hi(big_local_common-0x8000) | |
197 | lw $4,%lo(big_local_common-0x8000)($5) | |
198 | lui $5,%hi(small_local_common-0x8000) | |
199 | lw $4,%lo(small_local_common-0x8000)($5) | |
200 | lui $5,%hi(0x10000) | |
201 | lw $4,%lo(0x10000)($5) | |
202 | lui $5,%hi(data_label+0x10000) | |
203 | lw $4,%lo(data_label+0x10000)($5) | |
204 | lui $5,%hi(data_label2+0x10000) | |
205 | lw $4,%lo(data_label2+0x10000)($5) | |
206 | lui $5,%hi(big_external_data_label+0x10000) | |
207 | lw $4,%lo(big_external_data_label+0x10000)($5) | |
208 | lui $5,%hi(small_external_data_label+0x10000) | |
209 | lw $4,%lo(small_external_data_label+0x10000)($5) | |
210 | lui $5,%hi(big_external_common+0x10000) | |
211 | lw $4,%lo(big_external_common+0x10000)($5) | |
212 | lui $5,%hi(small_external_common+0x10000) | |
213 | lw $4,%lo(small_external_common+0x10000)($5) | |
214 | lui $5,%hi(big_local_common+0x10000) | |
215 | lw $4,%lo(big_local_common+0x10000)($5) | |
216 | lui $5,%hi(small_local_common+0x10000) | |
217 | lw $4,%lo(small_local_common+0x10000)($5) | |
218 | lui $5,%hi(0x1a5a5) | |
219 | lw $4,%lo(0x1a5a5)($5) | |
220 | lui $5,%hi(data_label+0x1a5a5) | |
221 | lw $4,%lo(data_label+0x1a5a5)($5) | |
222 | lui $5,%hi(data_label2+0x1a5a5) | |
223 | lw $4,%lo(data_label2+0x1a5a5)($5) | |
224 | lui $5,%hi(big_external_data_label+0x1a5a5) | |
225 | lw $4,%lo(big_external_data_label+0x1a5a5)($5) | |
226 | lui $5,%hi(small_external_data_label+0x1a5a5) | |
227 | lw $4,%lo(small_external_data_label+0x1a5a5)($5) | |
228 | lui $5,%hi(big_external_common+0x1a5a5) | |
229 | lw $4,%lo(big_external_common+0x1a5a5)($5) | |
230 | lui $5,%hi(small_external_common+0x1a5a5) | |
231 | lw $4,%lo(small_external_common+0x1a5a5)($5) | |
232 | lui $5,%hi(big_local_common+0x1a5a5) | |
233 | lw $4,%lo(big_local_common+0x1a5a5)($5) | |
234 | lui $5,%hi(small_local_common+0x1a5a5) | |
235 | lw $4,%lo(small_local_common+0x1a5a5)($5) | |
236 | ||
237 | # Force some (non-delay-slot) zero bytes, to make 'objdump' print ... | |
238 | .space 16 | |
239 | .align 4, 0 |