1#objdump: -dr --prefix-addresses -mmips:3000
2#name: MIPS1 branch relaxation with swapping
3#as: -32 -mips1 -KPIC -relax-branch
4#source: relax-swap1.s
5#stderr: relax-swap1.l
6
7.*: +file format .*mips.*
8
9Disassembly of section \.text:
100+0000 <[^>]*> b	00000000 <foo>
110+0004 <[^>]*> move	v0,a0
120+0008 <[^>]*> lw	at,2\(gp\)
13[ 	]*8: R_MIPS_GOT16	\.text
140+000c <[^>]*> nop
150+0010 <[^>]*> addiu	at,at,992
16[ 	]*10: R_MIPS_LO16	\.text
170+0014 <[^>]*> jr	at
180+0018 <[^>]*> move	v0,a0
190+001c <[^>]*> lw	v0,0\(a0\)
200+0020 <[^>]*> b	00000000 <foo>
210+0024 <[^>]*> nop
220+0028 <[^>]*> lw	v0,0\(a0\)
230+002c <[^>]*> lw	at,2\(gp\)
24[ 	]*2c: R_MIPS_GOT16	\.text
250+0030 <[^>]*> nop
260+0034 <[^>]*> addiu	at,at,992
27[ 	]*34: R_MIPS_LO16	\.text
280+0038 <[^>]*> jr	at
290+003c <[^>]*> nop
300+0040 <[^>]*> b	00000000 <foo>
310+0044 <[^>]*> sw	v0,0\(a0\)
320+0048 <[^>]*> lw	at,2\(gp\)
33[ 	]*48: R_MIPS_GOT16	\.text
340+004c <[^>]*> nop
350+0050 <[^>]*> addiu	at,at,992
36[ 	]*50: R_MIPS_LO16	\.text
370+0054 <[^>]*> jr	at
380+0058 <[^>]*> sw	v0,0\(a0\)
390+005c <[^>]*> move	v0,a0
400+0060 <[^>]*> beq	v0,v1,00000000 <foo>
410+0064 <[^>]*> nop
420+0068 <[^>]*> move	v0,a0
430+006c <[^>]*> bne	v0,v1,00000084 <foo\+0x84>
440+0070 <[^>]*> nop
450+0074 <[^>]*> lw	at,2\(gp\)
46[ 	]*74: R_MIPS_GOT16	\.text
470+0078 <[^>]*> nop
480+007c <[^>]*> addiu	at,at,992
49[ 	]*7c: R_MIPS_LO16	\.text
500+0080 <[^>]*> jr	at
510+0084 <[^>]*> nop
520+0088 <[^>]*> beq	a0,a1,00000000 <foo>
530+008c <[^>]*> move	v0,a0
540+0090 <[^>]*> bne	a0,a1,000000a8 <foo\+0xa8>
550+0094 <[^>]*> nop
560+0098 <[^>]*> lw	at,2\(gp\)
57[ 	]*98: R_MIPS_GOT16	\.text
580+009c <[^>]*> nop
590+00a0 <[^>]*> addiu	at,at,992
60[ 	]*a0: R_MIPS_LO16	\.text
610+00a4 <[^>]*> jr	at
620+00a8 <[^>]*> move	v0,a0
630+00ac <[^>]*> addiu	v0,a0,1
640+00b0 <[^>]*> beq	v0,v1,00000000 <foo>
650+00b4 <[^>]*> nop
660+00b8 <[^>]*> addiu	v0,a0,1
670+00bc <[^>]*> bne	v0,v1,000000d4 <foo\+0xd4>
680+00c0 <[^>]*> nop
690+00c4 <[^>]*> lw	at,2\(gp\)
70[ 	]*c4: R_MIPS_GOT16	\.text
710+00c8 <[^>]*> nop
720+00cc <[^>]*> addiu	at,at,992
73[ 	]*cc: R_MIPS_LO16	\.text
740+00d0 <[^>]*> jr	at
750+00d4 <[^>]*> nop
760+00d8 <[^>]*> beq	a0,a1,00000000 <foo>
770+00dc <[^>]*> addiu	v0,a0,1
780+00e0 <[^>]*> bne	a0,a1,000000f8 <foo\+0xf8>
790+00e4 <[^>]*> nop
800+00e8 <[^>]*> lw	at,2\(gp\)
81[ 	]*e8: R_MIPS_GOT16	\.text
820+00ec <[^>]*> nop
830+00f0 <[^>]*> addiu	at,at,992
84[ 	]*f0: R_MIPS_LO16	\.text
850+00f4 <[^>]*> jr	at
860+00f8 <[^>]*> addiu	v0,a0,1
870+00fc <[^>]*> lw	v0,0\(a0\)
880+0100 <[^>]*> nop
890+0104 <[^>]*> beq	v0,v1,00000000 <foo>
900+0108 <[^>]*> nop
910+010c <[^>]*> lw	v0,0\(a0\)
920+0110 <[^>]*> nop
930+0114 <[^>]*> bne	v0,v1,0000012c <foo\+0x12c>
940+0118 <[^>]*> nop
950+011c <[^>]*> lw	at,2\(gp\)
96[ 	]*11c: R_MIPS_GOT16	\.text
970+0120 <[^>]*> nop
980+0124 <[^>]*> addiu	at,at,992
99[ 	]*124: R_MIPS_LO16	\.text
1000+0128 <[^>]*> jr	at
1010+012c <[^>]*> nop
1020+0130 <[^>]*> lw	v0,0\(a0\)
1030+0134 <[^>]*> beq	a0,a1,00000000 <foo>
1040+0138 <[^>]*> nop
1050+013c <[^>]*> lw	v0,0\(a0\)
1060+0140 <[^>]*> bne	a0,a1,00000158 <foo\+0x158>
1070+0144 <[^>]*> nop
1080+0148 <[^>]*> lw	at,2\(gp\)
109[ 	]*148: R_MIPS_GOT16	\.text
1100+014c <[^>]*> nop
1110+0150 <[^>]*> addiu	at,at,992
112[ 	]*150: R_MIPS_LO16	\.text
1130+0154 <[^>]*> jr	at
1140+0158 <[^>]*> nop
1150+015c <[^>]*> beq	v0,v1,00000000 <foo>
1160+0160 <[^>]*> sw	v0,0\(a0\)
1170+0164 <[^>]*> bne	v0,v1,0000017c <foo\+0x17c>
1180+0168 <[^>]*> nop
1190+016c <[^>]*> lw	at,2\(gp\)
120[ 	]*16c: R_MIPS_GOT16	\.text
1210+0170 <[^>]*> nop
1220+0174 <[^>]*> addiu	at,at,992
123[ 	]*174: R_MIPS_LO16	\.text
1240+0178 <[^>]*> jr	at
1250+017c <[^>]*> sw	v0,0\(a0\)
1260+0180 <[^>]*> beq	a0,a1,00000000 <foo>
1270+0184 <[^>]*> sw	v0,0\(a0\)
1280+0188 <[^>]*> bne	a0,a1,000001a0 <foo\+0x1a0>
1290+018c <[^>]*> nop
1300+0190 <[^>]*> lw	at,2\(gp\)
131[ 	]*190: R_MIPS_GOT16	\.text
1320+0194 <[^>]*> nop
1330+0198 <[^>]*> addiu	at,at,992
134[ 	]*198: R_MIPS_LO16	\.text
1350+019c <[^>]*> jr	at
1360+01a0 <[^>]*> sw	v0,0\(a0\)
1370+01a4 <[^>]*> mfc1	v0,\$f0
1380+01a8 <[^>]*> move	a2,a3
1390+01ac <[^>]*> beq	v0,v1,00000000 <foo>
1400+01b0 <[^>]*> nop
1410+01b4 <[^>]*> mfc1	v0,\$f0
1420+01b8 <[^>]*> move	a2,a3
1430+01bc <[^>]*> bne	v0,v1,000001d4 <foo\+0x1d4>
1440+01c0 <[^>]*> nop
1450+01c4 <[^>]*> lw	at,2\(gp\)
146[ 	]*1c4: R_MIPS_GOT16	\.text
1470+01c8 <[^>]*> nop
1480+01cc <[^>]*> addiu	at,at,992
149[ 	]*1cc: R_MIPS_LO16	\.text
1500+01d0 <[^>]*> jr	at
1510+01d4 <[^>]*> nop
1520+01d8 <[^>]*> mfc1	v0,\$f0
1530+01dc <[^>]*> beq	a0,a1,00000000 <foo>
1540+01e0 <[^>]*> move	a2,a3
1550+01e4 <[^>]*> mfc1	v0,\$f0
1560+01e8 <[^>]*> bne	a0,a1,00000200 <foo\+0x200>
1570+01ec <[^>]*> nop
1580+01f0 <[^>]*> lw	at,2\(gp\)
159[ 	]*1f0: R_MIPS_GOT16	\.text
1600+01f4 <[^>]*> nop
1610+01f8 <[^>]*> addiu	at,at,992
162[ 	]*1f8: R_MIPS_LO16	\.text
1630+01fc <[^>]*> jr	at
1640+0200 <[^>]*> move	a2,a3
1650+0204 <[^>]*> bc1t	00000000 <foo>
1660+0208 <[^>]*> move	v0,a0
1670+020c <[^>]*> bc1f	00000224 <foo\+0x224>
1680+0210 <[^>]*> nop
1690+0214 <[^>]*> lw	at,2\(gp\)
170[ 	]*214: R_MIPS_GOT16	\.text
1710+0218 <[^>]*> nop
1720+021c <[^>]*> addiu	at,at,992
173[ 	]*21c: R_MIPS_LO16	\.text
1740+0220 <[^>]*> jr	at
1750+0224 <[^>]*> move	v0,a0
1760+0228 <[^>]*> move	v0,a0
1770+022c <[^>]*> b	00000000 <foo>
1780+0230 <[^>]*> nop
1790+0234 <[^>]*> move	v0,a0
1800+0238 <[^>]*> lw	at,2\(gp\)
181[ 	]*238: R_MIPS_GOT16	\.text
1820+023c <[^>]*> nop
1830+0240 <[^>]*> addiu	at,at,992
184[ 	]*240: R_MIPS_LO16	\.text
1850+0244 <[^>]*> jr	at
1860+0248 <[^>]*> nop
1870+024c <[^>]*> move	v0,a0
1880+0250 <[^>]*> b	00000000 <foo>
1890+0254 <[^>]*> nop
1900+0258 <[^>]*> move	v0,a0
1910+025c <[^>]*> lw	at,2\(gp\)
192[ 	]*25c: R_MIPS_GOT16	\.text
1930+0260 <[^>]*> nop
1940+0264 <[^>]*> addiu	at,at,992
195[ 	]*264: R_MIPS_LO16	\.text
1960+0268 <[^>]*> jr	at
1970+026c <[^>]*> nop
1980+0270 <[^>]*> move	a2,a3
1990+0274 <[^>]*> move	v0,a0
2000+0278 <[^>]*> b	00000000 <foo>
2010+027c <[^>]*> nop
2020+0280 <[^>]*> move	a2,a3
2030+0284 <[^>]*> move	v0,a0
2040+0288 <[^>]*> lw	at,2\(gp\)
205[ 	]*288: R_MIPS_GOT16	\.text
2060+028c <[^>]*> nop
2070+0290 <[^>]*> addiu	at,at,992
208[ 	]*290: R_MIPS_LO16	\.text
2090+0294 <[^>]*> jr	at
2100+0298 <[^>]*> nop
2110+029c <[^>]*> lw	at,0\(gp\)
212[ 	]*29c: R_MIPS_GOT16	\.text
2130+02a0 <[^>]*> nop
2140+02a4 <[^>]*> addiu	at,at,684
215[ 	]*2a4: R_MIPS_LO16	\.text
2160+02a8 <[^>]*> sw	v0,0\(at\)
2170+02ac <[^>]*> b	00000000 <foo>
2180+02b0 <[^>]*> nop
2190+02b4 <[^>]*> lw	at,0\(gp\)
220[ 	]*2b4: R_MIPS_GOT16	\.text
2210+02b8 <[^>]*> nop
2220+02bc <[^>]*> addiu	at,at,708
223[ 	]*2bc: R_MIPS_LO16	\.text
2240+02c0 <[^>]*> sw	v0,0\(at\)
2250+02c4 <[^>]*> lw	at,2\(gp\)
226[ 	]*2c4: R_MIPS_GOT16	\.text
2270+02c8 <[^>]*> nop
2280+02cc <[^>]*> addiu	at,at,992
229[ 	]*2cc: R_MIPS_LO16	\.text
2300+02d0 <[^>]*> jr	at
2310+02d4 <[^>]*> nop
2320+02d8 <[^>]*> lwc1	\$f0,0\(a0\)
2330+02dc <[^>]*> b	00000000 <foo>
2340+02e0 <[^>]*> nop
2350+02e4 <[^>]*> lwc1	\$f0,0\(a0\)
2360+02e8 <[^>]*> lw	at,2\(gp\)
237[ 	]*2e8: R_MIPS_GOT16	\.text
2380+02ec <[^>]*> nop
2390+02f0 <[^>]*> addiu	at,at,992
240[ 	]*2f0: R_MIPS_LO16	\.text
2410+02f4 <[^>]*> jr	at
2420+02f8 <[^>]*> nop
2430+02fc <[^>]*> cfc1	v0,\$31
2440+0300 <[^>]*> b	00000000 <foo>
2450+0304 <[^>]*> nop
2460+0308 <[^>]*> cfc1	v0,\$31
2470+030c <[^>]*> lw	at,2\(gp\)
248[ 	]*30c: R_MIPS_GOT16	\.text
2490+0310 <[^>]*> nop
2500+0314 <[^>]*> addiu	at,at,992
251[ 	]*314: R_MIPS_LO16	\.text
2520+0318 <[^>]*> jr	at
2530+031c <[^>]*> nop
2540+0320 <[^>]*> ctc1	v0,\$31
2550+0324 <[^>]*> b	00000000 <foo>
2560+0328 <[^>]*> nop
2570+032c <[^>]*> ctc1	v0,\$31
2580+0330 <[^>]*> lw	at,2\(gp\)
259[ 	]*330: R_MIPS_GOT16	\.text
2600+0334 <[^>]*> nop
2610+0338 <[^>]*> addiu	at,at,992
262[ 	]*338: R_MIPS_LO16	\.text
2630+033c <[^>]*> jr	at
2640+0340 <[^>]*> nop
2650+0344 <[^>]*> mtc1	v0,\$f31
2660+0348 <[^>]*> b	00000000 <foo>
2670+034c <[^>]*> nop
2680+0350 <[^>]*> mtc1	v0,\$f31
2690+0354 <[^>]*> lw	at,2\(gp\)
270[ 	]*354: R_MIPS_GOT16	\.text
2710+0358 <[^>]*> nop
2720+035c <[^>]*> addiu	at,at,992
273[ 	]*35c: R_MIPS_LO16	\.text
2740+0360 <[^>]*> jr	at
2750+0364 <[^>]*> nop
2760+0368 <[^>]*> mfhi	v0
2770+036c <[^>]*> b	00000000 <foo>
2780+0370 <[^>]*> nop
2790+0374 <[^>]*> mfhi	v0
2800+0378 <[^>]*> lw	at,2\(gp\)
281[ 	]*378: R_MIPS_GOT16	\.text
2820+037c <[^>]*> nop
2830+0380 <[^>]*> addiu	at,at,992
284[ 	]*380: R_MIPS_LO16	\.text
2850+0384 <[^>]*> jr	at
2860+0388 <[^>]*> nop
2870+038c <[^>]*> move	v0,a0
2880+0390 <[^>]*> jr	v0
2890+0394 <[^>]*> nop
2900+0398 <[^>]*> jr	a0
2910+039c <[^>]*> move	v0,a0
2920+03a0 <[^>]*> move	v0,a0
2930+03a4 <[^>]*> jalr	v0
2940+03a8 <[^>]*> nop
2950+03ac <[^>]*> jalr	a0
2960+03b0 <[^>]*> move	v0,a0
2970+03b4 <[^>]*> move	v0,ra
2980+03b8 <[^>]*> jalr	v1
2990+03bc <[^>]*> nop
3000+03c0 <[^>]*> move	ra,a0
3010+03c4 <[^>]*> jalr	a1
3020+03c8 <[^>]*> nop
3030+03cc <[^>]*> jalr	v0,v1
3040+03d0 <[^>]*> move	ra,a0
3050+03d4 <[^>]*> move	v0,ra
3060+03d8 <[^>]*> jalr	v0,v1
3070+03dc <[^>]*> nop
308	\.\.\.
309	\.\.\.
310