1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
|
#objdump: -dr --prefix-addresses -mmips:6000
#name: MIPS2 branch relaxation with swapping
#as: -32 -mips2 -KPIC -relax-branch
#source: relax-swap1.s
#stderr: relax-swap1.l
.*: +file format .*mips.*
Disassembly of section \.text:
0+0000 <[^>]*> b 00000000 <foo>
0+0004 <[^>]*> move v0,a0
0+0008 <[^>]*> lw at,2\(gp\)
[ ]*8: R_MIPS_GOT16 \.text
0+000c <[^>]*> addiu at,at,860
[ ]*c: R_MIPS_LO16 \.text
0+0010 <[^>]*> jr at
0+0014 <[^>]*> move v0,a0
0+0018 <[^>]*> b 00000000 <foo>
0+001c <[^>]*> lw v0,0\(a0\)
0+0020 <[^>]*> lw at,2\(gp\)
[ ]*20: R_MIPS_GOT16 \.text
0+0024 <[^>]*> addiu at,at,860
[ ]*24: R_MIPS_LO16 \.text
0+0028 <[^>]*> jr at
0+002c <[^>]*> lw v0,0\(a0\)
0+0030 <[^>]*> b 00000000 <foo>
0+0034 <[^>]*> sw v0,0\(a0\)
0+0038 <[^>]*> lw at,2\(gp\)
[ ]*38: R_MIPS_GOT16 \.text
0+003c <[^>]*> addiu at,at,860
[ ]*3c: R_MIPS_LO16 \.text
0+0040 <[^>]*> jr at
0+0044 <[^>]*> sw v0,0\(a0\)
0+0048 <[^>]*> move v0,a0
0+004c <[^>]*> beq v0,v1,00000000 <foo>
0+0050 <[^>]*> nop
0+0054 <[^>]*> move v0,a0
0+0058 <[^>]*> bne v0,v1,0000006c <foo\+0x6c>
0+005c <[^>]*> nop
0+0060 <[^>]*> lw at,2\(gp\)
[ ]*60: R_MIPS_GOT16 \.text
0+0064 <[^>]*> addiu at,at,860
[ ]*64: R_MIPS_LO16 \.text
0+0068 <[^>]*> jr at
0+006c <[^>]*> nop
0+0070 <[^>]*> beq a0,a1,00000000 <foo>
0+0074 <[^>]*> move v0,a0
0+0078 <[^>]*> bne a0,a1,0000008c <foo\+0x8c>
0+007c <[^>]*> nop
0+0080 <[^>]*> lw at,2\(gp\)
[ ]*80: R_MIPS_GOT16 \.text
0+0084 <[^>]*> addiu at,at,860
[ ]*84: R_MIPS_LO16 \.text
0+0088 <[^>]*> jr at
0+008c <[^>]*> move v0,a0
0+0090 <[^>]*> addiu v0,a0,1
0+0094 <[^>]*> beq v0,v1,00000000 <foo>
0+0098 <[^>]*> nop
0+009c <[^>]*> addiu v0,a0,1
0+00a0 <[^>]*> bne v0,v1,000000b4 <foo\+0xb4>
0+00a4 <[^>]*> nop
0+00a8 <[^>]*> lw at,2\(gp\)
[ ]*a8: R_MIPS_GOT16 \.text
0+00ac <[^>]*> addiu at,at,860
[ ]*ac: R_MIPS_LO16 \.text
0+00b0 <[^>]*> jr at
0+00b4 <[^>]*> nop
0+00b8 <[^>]*> beq a0,a1,00000000 <foo>
0+00bc <[^>]*> addiu v0,a0,1
0+00c0 <[^>]*> bne a0,a1,000000d4 <foo\+0xd4>
0+00c4 <[^>]*> nop
0+00c8 <[^>]*> lw at,2\(gp\)
[ ]*c8: R_MIPS_GOT16 \.text
0+00cc <[^>]*> addiu at,at,860
[ ]*cc: R_MIPS_LO16 \.text
0+00d0 <[^>]*> jr at
0+00d4 <[^>]*> addiu v0,a0,1
0+00d8 <[^>]*> lw v0,0\(a0\)
0+00dc <[^>]*> beq v0,v1,00000000 <foo>
0+00e0 <[^>]*> nop
0+00e4 <[^>]*> lw v0,0\(a0\)
0+00e8 <[^>]*> bne v0,v1,000000fc <foo\+0xfc>
0+00ec <[^>]*> nop
0+00f0 <[^>]*> lw at,2\(gp\)
[ ]*f0: R_MIPS_GOT16 \.text
0+00f4 <[^>]*> addiu at,at,860
[ ]*f4: R_MIPS_LO16 \.text
0+00f8 <[^>]*> jr at
0+00fc <[^>]*> nop
0+0100 <[^>]*> beq a0,a1,00000000 <foo>
0+0104 <[^>]*> lw v0,0\(a0\)
0+0108 <[^>]*> bne a0,a1,0000011c <foo\+0x11c>
0+010c <[^>]*> nop
0+0110 <[^>]*> lw at,2\(gp\)
[ ]*110: R_MIPS_GOT16 \.text
0+0114 <[^>]*> addiu at,at,860
[ ]*114: R_MIPS_LO16 \.text
0+0118 <[^>]*> jr at
0+011c <[^>]*> lw v0,0\(a0\)
0+0120 <[^>]*> beq v0,v1,00000000 <foo>
0+0124 <[^>]*> sw v0,0\(a0\)
0+0128 <[^>]*> bne v0,v1,0000013c <foo\+0x13c>
0+012c <[^>]*> nop
0+0130 <[^>]*> lw at,2\(gp\)
[ ]*130: R_MIPS_GOT16 \.text
0+0134 <[^>]*> addiu at,at,860
[ ]*134: R_MIPS_LO16 \.text
0+0138 <[^>]*> jr at
0+013c <[^>]*> sw v0,0\(a0\)
0+0140 <[^>]*> beq a0,a1,00000000 <foo>
0+0144 <[^>]*> sw v0,0\(a0\)
0+0148 <[^>]*> bne a0,a1,0000015c <foo\+0x15c>
0+014c <[^>]*> nop
0+0150 <[^>]*> lw at,2\(gp\)
[ ]*150: R_MIPS_GOT16 \.text
0+0154 <[^>]*> addiu at,at,860
[ ]*154: R_MIPS_LO16 \.text
0+0158 <[^>]*> jr at
0+015c <[^>]*> sw v0,0\(a0\)
0+0160 <[^>]*> mfc1 v0,\$f0
0+0164 <[^>]*> move a2,a3
0+0168 <[^>]*> beq v0,v1,00000000 <foo>
0+016c <[^>]*> nop
0+0170 <[^>]*> mfc1 v0,\$f0
0+0174 <[^>]*> move a2,a3
0+0178 <[^>]*> bne v0,v1,0000018c <foo\+0x18c>
0+017c <[^>]*> nop
0+0180 <[^>]*> lw at,2\(gp\)
[ ]*180: R_MIPS_GOT16 \.text
0+0184 <[^>]*> addiu at,at,860
[ ]*184: R_MIPS_LO16 \.text
0+0188 <[^>]*> jr at
0+018c <[^>]*> nop
0+0190 <[^>]*> mfc1 v0,\$f0
0+0194 <[^>]*> beq a0,a1,00000000 <foo>
0+0198 <[^>]*> move a2,a3
0+019c <[^>]*> mfc1 v0,\$f0
0+01a0 <[^>]*> bne a0,a1,000001b4 <foo\+0x1b4>
0+01a4 <[^>]*> nop
0+01a8 <[^>]*> lw at,2\(gp\)
[ ]*1a8: R_MIPS_GOT16 \.text
0+01ac <[^>]*> addiu at,at,860
[ ]*1ac: R_MIPS_LO16 \.text
0+01b0 <[^>]*> jr at
0+01b4 <[^>]*> move a2,a3
0+01b8 <[^>]*> bc1t 00000000 <foo>
0+01bc <[^>]*> move v0,a0
0+01c0 <[^>]*> bc1f 000001d4 <foo\+0x1d4>
0+01c4 <[^>]*> nop
0+01c8 <[^>]*> lw at,2\(gp\)
[ ]*1c8: R_MIPS_GOT16 \.text
0+01cc <[^>]*> addiu at,at,860
[ ]*1cc: R_MIPS_LO16 \.text
0+01d0 <[^>]*> jr at
0+01d4 <[^>]*> move v0,a0
0+01d8 <[^>]*> move v0,a0
0+01dc <[^>]*> b 00000000 <foo>
0+01e0 <[^>]*> nop
0+01e4 <[^>]*> move v0,a0
0+01e8 <[^>]*> lw at,2\(gp\)
[ ]*1e8: R_MIPS_GOT16 \.text
0+01ec <[^>]*> addiu at,at,860
[ ]*1ec: R_MIPS_LO16 \.text
0+01f0 <[^>]*> jr at
0+01f4 <[^>]*> nop
0+01f8 <[^>]*> move v0,a0
0+01fc <[^>]*> b 00000000 <foo>
0+0200 <[^>]*> nop
0+0204 <[^>]*> move v0,a0
0+0208 <[^>]*> lw at,2\(gp\)
[ ]*208: R_MIPS_GOT16 \.text
0+020c <[^>]*> addiu at,at,860
[ ]*20c: R_MIPS_LO16 \.text
0+0210 <[^>]*> jr at
0+0214 <[^>]*> nop
0+0218 <[^>]*> move a2,a3
0+021c <[^>]*> move v0,a0
0+0220 <[^>]*> b 00000000 <foo>
0+0224 <[^>]*> nop
0+0228 <[^>]*> move a2,a3
0+022c <[^>]*> move v0,a0
0+0230 <[^>]*> lw at,2\(gp\)
[ ]*230: R_MIPS_GOT16 \.text
0+0234 <[^>]*> addiu at,at,860
[ ]*234: R_MIPS_LO16 \.text
0+0238 <[^>]*> jr at
0+023c <[^>]*> nop
0+0240 <[^>]*> lw at,0\(gp\)
[ ]*240: R_MIPS_GOT16 \.text
0+0244 <[^>]*> addiu at,at,588
[ ]*244: R_MIPS_LO16 \.text
0+0248 <[^>]*> sw v0,0\(at\)
0+024c <[^>]*> b 00000000 <foo>
0+0250 <[^>]*> nop
0+0254 <[^>]*> lw at,0\(gp\)
[ ]*254: R_MIPS_GOT16 \.text
0+0258 <[^>]*> addiu at,at,608
[ ]*258: R_MIPS_LO16 \.text
0+025c <[^>]*> sw v0,0\(at\)
0+0260 <[^>]*> lw at,2\(gp\)
[ ]*260: R_MIPS_GOT16 \.text
0+0264 <[^>]*> addiu at,at,860
[ ]*264: R_MIPS_LO16 \.text
0+0268 <[^>]*> jr at
0+026c <[^>]*> nop
0+0270 <[^>]*> b 00000000 <foo>
0+0274 <[^>]*> lwc1 \$f0,0\(a0\)
0+0278 <[^>]*> lw at,2\(gp\)
[ ]*278: R_MIPS_GOT16 \.text
0+027c <[^>]*> addiu at,at,860
[ ]*27c: R_MIPS_LO16 \.text
0+0280 <[^>]*> jr at
0+0284 <[^>]*> lwc1 \$f0,0\(a0\)
0+0288 <[^>]*> cfc1 v0,\$31
0+028c <[^>]*> b 00000000 <foo>
0+0290 <[^>]*> nop
0+0294 <[^>]*> cfc1 v0,\$31
0+0298 <[^>]*> lw at,2\(gp\)
[ ]*298: R_MIPS_GOT16 \.text
0+029c <[^>]*> addiu at,at,860
[ ]*29c: R_MIPS_LO16 \.text
0+02a0 <[^>]*> jr at
0+02a4 <[^>]*> nop
0+02a8 <[^>]*> ctc1 v0,\$31
0+02ac <[^>]*> b 00000000 <foo>
0+02b0 <[^>]*> nop
0+02b4 <[^>]*> ctc1 v0,\$31
0+02b8 <[^>]*> lw at,2\(gp\)
[ ]*2b8: R_MIPS_GOT16 \.text
0+02bc <[^>]*> addiu at,at,860
[ ]*2bc: R_MIPS_LO16 \.text
0+02c0 <[^>]*> jr at
0+02c4 <[^>]*> nop
0+02c8 <[^>]*> mtc1 v0,\$f31
0+02cc <[^>]*> b 00000000 <foo>
0+02d0 <[^>]*> nop
0+02d4 <[^>]*> mtc1 v0,\$f31
0+02d8 <[^>]*> lw at,2\(gp\)
[ ]*2d8: R_MIPS_GOT16 \.text
0+02dc <[^>]*> addiu at,at,860
[ ]*2dc: R_MIPS_LO16 \.text
0+02e0 <[^>]*> jr at
0+02e4 <[^>]*> nop
0+02e8 <[^>]*> mfhi v0
0+02ec <[^>]*> b 00000000 <foo>
0+02f0 <[^>]*> nop
0+02f4 <[^>]*> mfhi v0
0+02f8 <[^>]*> lw at,2\(gp\)
[ ]*2f8: R_MIPS_GOT16 \.text
0+02fc <[^>]*> addiu at,at,860
[ ]*2fc: R_MIPS_LO16 \.text
0+0300 <[^>]*> jr at
0+0304 <[^>]*> nop
0+0308 <[^>]*> move v0,a0
0+030c <[^>]*> jr v0
0+0310 <[^>]*> nop
0+0314 <[^>]*> jr a0
0+0318 <[^>]*> move v0,a0
0+031c <[^>]*> move v0,a0
0+0320 <[^>]*> jalr v0
0+0324 <[^>]*> nop
0+0328 <[^>]*> jalr a0
0+032c <[^>]*> move v0,a0
0+0330 <[^>]*> move v0,ra
0+0334 <[^>]*> jalr v1
0+0338 <[^>]*> nop
0+033c <[^>]*> move ra,a0
0+0340 <[^>]*> jalr a1
0+0344 <[^>]*> nop
0+0348 <[^>]*> jalr v0,v1
0+034c <[^>]*> move ra,a0
0+0350 <[^>]*> move v0,ra
0+0354 <[^>]*> jalr v0,v1
0+0358 <[^>]*> nop
\.\.\.
\.\.\.
|