1#objdump: -dr --prefix-addresses -mmips:6000 2#name: MIPS2 branch relaxation with swapping 3#as: -32 -mips2 -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 <[^>]*> addiu at,at,860 15[ ]*c: R_MIPS_LO16 \.text 160+0010 <[^>]*> jr at 170+0014 <[^>]*> move v0,a0 180+0018 <[^>]*> b 00000000 <foo> 190+001c <[^>]*> lw v0,0\(a0\) 200+0020 <[^>]*> lw at,2\(gp\) 21[ ]*20: R_MIPS_GOT16 \.text 220+0024 <[^>]*> addiu at,at,860 23[ ]*24: R_MIPS_LO16 \.text 240+0028 <[^>]*> jr at 250+002c <[^>]*> lw v0,0\(a0\) 260+0030 <[^>]*> b 00000000 <foo> 270+0034 <[^>]*> sw v0,0\(a0\) 280+0038 <[^>]*> lw at,2\(gp\) 29[ ]*38: R_MIPS_GOT16 \.text 300+003c <[^>]*> addiu at,at,860 31[ ]*3c: R_MIPS_LO16 \.text 320+0040 <[^>]*> jr at 330+0044 <[^>]*> sw v0,0\(a0\) 340+0048 <[^>]*> move v0,a0 350+004c <[^>]*> beq v0,v1,00000000 <foo> 360+0050 <[^>]*> nop 370+0054 <[^>]*> move v0,a0 380+0058 <[^>]*> bne v0,v1,0000006c <foo\+0x6c> 390+005c <[^>]*> nop 400+0060 <[^>]*> lw at,2\(gp\) 41[ ]*60: R_MIPS_GOT16 \.text 420+0064 <[^>]*> addiu at,at,860 43[ ]*64: R_MIPS_LO16 \.text 440+0068 <[^>]*> jr at 450+006c <[^>]*> nop 460+0070 <[^>]*> beq a0,a1,00000000 <foo> 470+0074 <[^>]*> move v0,a0 480+0078 <[^>]*> bne a0,a1,0000008c <foo\+0x8c> 490+007c <[^>]*> nop 500+0080 <[^>]*> lw at,2\(gp\) 51[ ]*80: R_MIPS_GOT16 \.text 520+0084 <[^>]*> addiu at,at,860 53[ ]*84: R_MIPS_LO16 \.text 540+0088 <[^>]*> jr at 550+008c <[^>]*> move v0,a0 560+0090 <[^>]*> addiu v0,a0,1 570+0094 <[^>]*> beq v0,v1,00000000 <foo> 580+0098 <[^>]*> nop 590+009c <[^>]*> addiu v0,a0,1 600+00a0 <[^>]*> bne v0,v1,000000b4 <foo\+0xb4> 610+00a4 <[^>]*> nop 620+00a8 <[^>]*> lw at,2\(gp\) 63[ ]*a8: R_MIPS_GOT16 \.text 640+00ac <[^>]*> addiu at,at,860 65[ ]*ac: R_MIPS_LO16 \.text 660+00b0 <[^>]*> jr at 670+00b4 <[^>]*> nop 680+00b8 <[^>]*> beq a0,a1,00000000 <foo> 690+00bc <[^>]*> addiu v0,a0,1 700+00c0 <[^>]*> bne a0,a1,000000d4 <foo\+0xd4> 710+00c4 <[^>]*> nop 720+00c8 <[^>]*> lw at,2\(gp\) 73[ ]*c8: R_MIPS_GOT16 \.text 740+00cc <[^>]*> addiu at,at,860 75[ ]*cc: R_MIPS_LO16 \.text 760+00d0 <[^>]*> jr at 770+00d4 <[^>]*> addiu v0,a0,1 780+00d8 <[^>]*> lw v0,0\(a0\) 790+00dc <[^>]*> beq v0,v1,00000000 <foo> 800+00e0 <[^>]*> nop 810+00e4 <[^>]*> lw v0,0\(a0\) 820+00e8 <[^>]*> bne v0,v1,000000fc <foo\+0xfc> 830+00ec <[^>]*> nop 840+00f0 <[^>]*> lw at,2\(gp\) 85[ ]*f0: R_MIPS_GOT16 \.text 860+00f4 <[^>]*> addiu at,at,860 87[ ]*f4: R_MIPS_LO16 \.text 880+00f8 <[^>]*> jr at 890+00fc <[^>]*> nop 900+0100 <[^>]*> beq a0,a1,00000000 <foo> 910+0104 <[^>]*> lw v0,0\(a0\) 920+0108 <[^>]*> bne a0,a1,0000011c <foo\+0x11c> 930+010c <[^>]*> nop 940+0110 <[^>]*> lw at,2\(gp\) 95[ ]*110: R_MIPS_GOT16 \.text 960+0114 <[^>]*> addiu at,at,860 97[ ]*114: R_MIPS_LO16 \.text 980+0118 <[^>]*> jr at 990+011c <[^>]*> lw v0,0\(a0\) 1000+0120 <[^>]*> beq v0,v1,00000000 <foo> 1010+0124 <[^>]*> sw v0,0\(a0\) 1020+0128 <[^>]*> bne v0,v1,0000013c <foo\+0x13c> 1030+012c <[^>]*> nop 1040+0130 <[^>]*> lw at,2\(gp\) 105[ ]*130: R_MIPS_GOT16 \.text 1060+0134 <[^>]*> addiu at,at,860 107[ ]*134: R_MIPS_LO16 \.text 1080+0138 <[^>]*> jr at 1090+013c <[^>]*> sw v0,0\(a0\) 1100+0140 <[^>]*> beq a0,a1,00000000 <foo> 1110+0144 <[^>]*> sw v0,0\(a0\) 1120+0148 <[^>]*> bne a0,a1,0000015c <foo\+0x15c> 1130+014c <[^>]*> nop 1140+0150 <[^>]*> lw at,2\(gp\) 115[ ]*150: R_MIPS_GOT16 \.text 1160+0154 <[^>]*> addiu at,at,860 117[ ]*154: R_MIPS_LO16 \.text 1180+0158 <[^>]*> jr at 1190+015c <[^>]*> sw v0,0\(a0\) 1200+0160 <[^>]*> mfc1 v0,\$f0 1210+0164 <[^>]*> move a2,a3 1220+0168 <[^>]*> beq v0,v1,00000000 <foo> 1230+016c <[^>]*> nop 1240+0170 <[^>]*> mfc1 v0,\$f0 1250+0174 <[^>]*> move a2,a3 1260+0178 <[^>]*> bne v0,v1,0000018c <foo\+0x18c> 1270+017c <[^>]*> nop 1280+0180 <[^>]*> lw at,2\(gp\) 129[ ]*180: R_MIPS_GOT16 \.text 1300+0184 <[^>]*> addiu at,at,860 131[ ]*184: R_MIPS_LO16 \.text 1320+0188 <[^>]*> jr at 1330+018c <[^>]*> nop 1340+0190 <[^>]*> mfc1 v0,\$f0 1350+0194 <[^>]*> beq a0,a1,00000000 <foo> 1360+0198 <[^>]*> move a2,a3 1370+019c <[^>]*> mfc1 v0,\$f0 1380+01a0 <[^>]*> bne a0,a1,000001b4 <foo\+0x1b4> 1390+01a4 <[^>]*> nop 1400+01a8 <[^>]*> lw at,2\(gp\) 141[ ]*1a8: R_MIPS_GOT16 \.text 1420+01ac <[^>]*> addiu at,at,860 143[ ]*1ac: R_MIPS_LO16 \.text 1440+01b0 <[^>]*> jr at 1450+01b4 <[^>]*> move a2,a3 1460+01b8 <[^>]*> bc1t 00000000 <foo> 1470+01bc <[^>]*> move v0,a0 1480+01c0 <[^>]*> bc1f 000001d4 <foo\+0x1d4> 1490+01c4 <[^>]*> nop 1500+01c8 <[^>]*> lw at,2\(gp\) 151[ ]*1c8: R_MIPS_GOT16 \.text 1520+01cc <[^>]*> addiu at,at,860 153[ ]*1cc: R_MIPS_LO16 \.text 1540+01d0 <[^>]*> jr at 1550+01d4 <[^>]*> move v0,a0 1560+01d8 <[^>]*> move v0,a0 1570+01dc <[^>]*> b 00000000 <foo> 1580+01e0 <[^>]*> nop 1590+01e4 <[^>]*> move v0,a0 1600+01e8 <[^>]*> lw at,2\(gp\) 161[ ]*1e8: R_MIPS_GOT16 \.text 1620+01ec <[^>]*> addiu at,at,860 163[ ]*1ec: R_MIPS_LO16 \.text 1640+01f0 <[^>]*> jr at 1650+01f4 <[^>]*> nop 1660+01f8 <[^>]*> move v0,a0 1670+01fc <[^>]*> b 00000000 <foo> 1680+0200 <[^>]*> nop 1690+0204 <[^>]*> move v0,a0 1700+0208 <[^>]*> lw at,2\(gp\) 171[ ]*208: R_MIPS_GOT16 \.text 1720+020c <[^>]*> addiu at,at,860 173[ ]*20c: R_MIPS_LO16 \.text 1740+0210 <[^>]*> jr at 1750+0214 <[^>]*> nop 1760+0218 <[^>]*> move a2,a3 1770+021c <[^>]*> move v0,a0 1780+0220 <[^>]*> b 00000000 <foo> 1790+0224 <[^>]*> nop 1800+0228 <[^>]*> move a2,a3 1810+022c <[^>]*> move v0,a0 1820+0230 <[^>]*> lw at,2\(gp\) 183[ ]*230: R_MIPS_GOT16 \.text 1840+0234 <[^>]*> addiu at,at,860 185[ ]*234: R_MIPS_LO16 \.text 1860+0238 <[^>]*> jr at 1870+023c <[^>]*> nop 1880+0240 <[^>]*> lw at,0\(gp\) 189[ ]*240: R_MIPS_GOT16 \.text 1900+0244 <[^>]*> addiu at,at,588 191[ ]*244: R_MIPS_LO16 \.text 1920+0248 <[^>]*> sw v0,0\(at\) 1930+024c <[^>]*> b 00000000 <foo> 1940+0250 <[^>]*> nop 1950+0254 <[^>]*> lw at,0\(gp\) 196[ ]*254: R_MIPS_GOT16 \.text 1970+0258 <[^>]*> addiu at,at,608 198[ ]*258: R_MIPS_LO16 \.text 1990+025c <[^>]*> sw v0,0\(at\) 2000+0260 <[^>]*> lw at,2\(gp\) 201[ ]*260: R_MIPS_GOT16 \.text 2020+0264 <[^>]*> addiu at,at,860 203[ ]*264: R_MIPS_LO16 \.text 2040+0268 <[^>]*> jr at 2050+026c <[^>]*> nop 2060+0270 <[^>]*> b 00000000 <foo> 2070+0274 <[^>]*> lwc1 \$f0,0\(a0\) 2080+0278 <[^>]*> lw at,2\(gp\) 209[ ]*278: R_MIPS_GOT16 \.text 2100+027c <[^>]*> addiu at,at,860 211[ ]*27c: R_MIPS_LO16 \.text 2120+0280 <[^>]*> jr at 2130+0284 <[^>]*> lwc1 \$f0,0\(a0\) 2140+0288 <[^>]*> cfc1 v0,\$31 2150+028c <[^>]*> b 00000000 <foo> 2160+0290 <[^>]*> nop 2170+0294 <[^>]*> cfc1 v0,\$31 2180+0298 <[^>]*> lw at,2\(gp\) 219[ ]*298: R_MIPS_GOT16 \.text 2200+029c <[^>]*> addiu at,at,860 221[ ]*29c: R_MIPS_LO16 \.text 2220+02a0 <[^>]*> jr at 2230+02a4 <[^>]*> nop 2240+02a8 <[^>]*> ctc1 v0,\$31 2250+02ac <[^>]*> b 00000000 <foo> 2260+02b0 <[^>]*> nop 2270+02b4 <[^>]*> ctc1 v0,\$31 2280+02b8 <[^>]*> lw at,2\(gp\) 229[ ]*2b8: R_MIPS_GOT16 \.text 2300+02bc <[^>]*> addiu at,at,860 231[ ]*2bc: R_MIPS_LO16 \.text 2320+02c0 <[^>]*> jr at 2330+02c4 <[^>]*> nop 2340+02c8 <[^>]*> mtc1 v0,\$f31 2350+02cc <[^>]*> b 00000000 <foo> 2360+02d0 <[^>]*> nop 2370+02d4 <[^>]*> mtc1 v0,\$f31 2380+02d8 <[^>]*> lw at,2\(gp\) 239[ ]*2d8: R_MIPS_GOT16 \.text 2400+02dc <[^>]*> addiu at,at,860 241[ ]*2dc: R_MIPS_LO16 \.text 2420+02e0 <[^>]*> jr at 2430+02e4 <[^>]*> nop 2440+02e8 <[^>]*> mfhi v0 2450+02ec <[^>]*> b 00000000 <foo> 2460+02f0 <[^>]*> nop 2470+02f4 <[^>]*> mfhi v0 2480+02f8 <[^>]*> lw at,2\(gp\) 249[ ]*2f8: R_MIPS_GOT16 \.text 2500+02fc <[^>]*> addiu at,at,860 251[ ]*2fc: R_MIPS_LO16 \.text 2520+0300 <[^>]*> jr at 2530+0304 <[^>]*> nop 2540+0308 <[^>]*> move v0,a0 2550+030c <[^>]*> jr v0 2560+0310 <[^>]*> nop 2570+0314 <[^>]*> jr a0 2580+0318 <[^>]*> move v0,a0 2590+031c <[^>]*> move v0,a0 2600+0320 <[^>]*> jalr v0 2610+0324 <[^>]*> nop 2620+0328 <[^>]*> jalr a0 2630+032c <[^>]*> move v0,a0 2640+0330 <[^>]*> move v0,ra 2650+0334 <[^>]*> jalr v1 2660+0338 <[^>]*> nop 2670+033c <[^>]*> move ra,a0 2680+0340 <[^>]*> jalr a1 2690+0344 <[^>]*> nop 2700+0348 <[^>]*> jalr v0,v1 2710+034c <[^>]*> move ra,a0 2720+0350 <[^>]*> move v0,ra 2730+0354 <[^>]*> jalr v0,v1 2740+0358 <[^>]*> nop 275 \.\.\. 276 \.\.\. 277