Back to index

cell-binutils  2.17cvs20070401
relax.d
Go to the documentation of this file.
00001 #as: -KPIC -mips3 -32 -relax-branch
00002 #objdump: -dr --prefix-addresses -mmips:4000
00003 #name: MIPS relax
00004 #stderr: relax.l
00005 
00006 # Test relaxation.
00007 
00008 .*: +file format .*mips.*
00009 
00010 Disassembly of section \.text:
00011 00000000 <foo> lw    at,2\(gp\)
00012                      0: R_MIPS_GOT16      \.text
00013 00000004 <foo\+0x4> addiu   at,at,592
00014                      4: R_MIPS_LO16       \.text
00015 00000008 <foo\+0x8> jr      at
00016 0000000c <foo\+0xc> nop
00017 00000010 <foo\+0x10> lw     at,2\(gp\)
00018                      10: R_MIPS_GOT16     \.text
00019 00000014 <foo\+0x14> addiu  at,at,592
00020                      14: R_MIPS_LO16      \.text
00021 00000018 <foo\+0x18> jalr   at
00022 0000001c <foo\+0x1c> nop
00023 00000020 <foo\+0x20> bne    v0,v1,00000034 <foo\+0x34>
00024 00000024 <foo\+0x24> nop
00025 00000028 <foo\+0x28> lw     at,2\(gp\)
00026                      28: R_MIPS_GOT16     \.text
00027 0000002c <foo\+0x2c> addiu  at,at,592
00028                      2c: R_MIPS_LO16      \.text
00029 00000030 <foo\+0x30> jr     at
00030 00000034 <foo\+0x34> nop
00031 00000038 <foo\+0x38> beq    a0,a1,0000004c <foo\+0x4c>
00032 0000003c <foo\+0x3c> nop
00033 00000040 <foo\+0x40> lw     at,2\(gp\)
00034                      40: R_MIPS_GOT16     \.text
00035 00000044 <foo\+0x44> addiu  at,at,592
00036                      44: R_MIPS_LO16      \.text
00037 00000048 <foo\+0x48> jr     at
00038 0000004c <foo\+0x4c> nop
00039 00000050 <foo\+0x50> bgtz   v0,00000064 <foo\+0x64>
00040 00000054 <foo\+0x54> nop
00041 00000058 <foo\+0x58> lw     at,2\(gp\)
00042                      58: R_MIPS_GOT16     \.text
00043 0000005c <foo\+0x5c> addiu  at,at,592
00044                      5c: R_MIPS_LO16      \.text
00045 00000060 <foo\+0x60> jr     at
00046 00000064 <foo\+0x64> nop
00047 00000068 <foo\+0x68> blez   v1,0000007c <foo\+0x7c>
00048 0000006c <foo\+0x6c> nop
00049 00000070 <foo\+0x70> lw     at,2\(gp\)
00050                      70: R_MIPS_GOT16     \.text
00051 00000074 <foo\+0x74> addiu  at,at,592
00052                      74: R_MIPS_LO16      \.text
00053 00000078 <foo\+0x78> jr     at
00054 0000007c <foo\+0x7c> nop
00055 00000080 <foo\+0x80> bgez   a0,00000094 <foo\+0x94>
00056 00000084 <foo\+0x84> nop
00057 00000088 <foo\+0x88> lw     at,2\(gp\)
00058                      88: R_MIPS_GOT16     \.text
00059 0000008c <foo\+0x8c> addiu  at,at,592
00060                      8c: R_MIPS_LO16      \.text
00061 00000090 <foo\+0x90> jr     at
00062 00000094 <foo\+0x94> nop
00063 00000098 <foo\+0x98> bltz   a1,000000ac <foo\+0xac>
00064 0000009c <foo\+0x9c> nop
00065 000000a0 <foo\+0xa0> lw     at,2\(gp\)
00066                      a0: R_MIPS_GOT16     \.text
00067 000000a4 <foo\+0xa4> addiu  at,at,592
00068                      a4: R_MIPS_LO16      \.text
00069 000000a8 <foo\+0xa8> jr     at
00070 000000ac <foo\+0xac> nop
00071 000000b0 <foo\+0xb0> bc1t   000000c4 <foo\+0xc4>
00072 000000b4 <foo\+0xb4> nop
00073 000000b8 <foo\+0xb8> lw     at,2\(gp\)
00074                      b8: R_MIPS_GOT16     \.text
00075 000000bc <foo\+0xbc> addiu  at,at,592
00076                      bc: R_MIPS_LO16      \.text
00077 000000c0 <foo\+0xc0> jr     at
00078 000000c4 <foo\+0xc4> nop
00079 000000c8 <foo\+0xc8> bc1f   000000dc <foo\+0xdc>
00080 000000cc <foo\+0xcc> nop
00081 000000d0 <foo\+0xd0> lw     at,2\(gp\)
00082                      d0: R_MIPS_GOT16     \.text
00083 000000d4 <foo\+0xd4> addiu  at,at,592
00084                      d4: R_MIPS_LO16      \.text
00085 000000d8 <foo\+0xd8> jr     at
00086 000000dc <foo\+0xdc> nop
00087 000000e0 <foo\+0xe0> bgez   v0,000000f4 <foo\+0xf4>
00088 000000e4 <foo\+0xe4> nop
00089 000000e8 <foo\+0xe8> lw     at,2\(gp\)
00090                      e8: R_MIPS_GOT16     \.text
00091 000000ec <foo\+0xec> addiu  at,at,592
00092                      ec: R_MIPS_LO16      \.text
00093 000000f0 <foo\+0xf0> jalr   at
00094 000000f4 <foo\+0xf4> nop
00095 000000f8 <foo\+0xf8> bltz   v1,0000010c <foo\+0x10c>
00096 000000fc <foo\+0xfc> nop
00097 00000100 <foo\+0x100> lw    at,2\(gp\)
00098                      100: R_MIPS_GOT16    \.text
00099 00000104 <foo\+0x104> addiu at,at,592
00100                      104: R_MIPS_LO16     \.text
00101 00000108 <foo\+0x108> jalr  at
00102 0000010c <foo\+0x10c> nop
00103 00000110 <foo\+0x110> beql  v0,v1,00000120 <foo\+0x120>
00104 00000114 <foo\+0x114> nop
00105 00000118 <foo\+0x118> beqzl zero,00000130 <foo\+0x130>
00106 0000011c <foo\+0x11c> nop
00107 00000120 <foo\+0x120> lw    at,2\(gp\)
00108                      120: R_MIPS_GOT16    \.text
00109 00000124 <foo\+0x124> addiu at,at,592
00110                      124: R_MIPS_LO16     \.text
00111 00000128 <foo\+0x128> jr    at
00112 0000012c <foo\+0x12c> nop
00113 00000130 <foo\+0x130> bnel  a0,a1,00000140 <foo\+0x140>
00114 00000134 <foo\+0x134> nop
00115 00000138 <foo\+0x138> beqzl zero,00000150 <foo\+0x150>
00116 0000013c <foo\+0x13c> nop
00117 00000140 <foo\+0x140> lw    at,2\(gp\)
00118                      140: R_MIPS_GOT16    \.text
00119 00000144 <foo\+0x144> addiu at,at,592
00120                      144: R_MIPS_LO16     \.text
00121 00000148 <foo\+0x148> jr    at
00122 0000014c <foo\+0x14c> nop
00123 00000150 <foo\+0x150> blezl v0,00000160 <foo\+0x160>
00124 00000154 <foo\+0x154> nop
00125 00000158 <foo\+0x158> beqzl zero,00000170 <foo\+0x170>
00126 0000015c <foo\+0x15c> nop
00127 00000160 <foo\+0x160> lw    at,2\(gp\)
00128                      160: R_MIPS_GOT16    \.text
00129 00000164 <foo\+0x164> addiu at,at,592
00130                      164: R_MIPS_LO16     \.text
00131 00000168 <foo\+0x168> jr    at
00132 0000016c <foo\+0x16c> nop
00133 00000170 <foo\+0x170> bgtzl v1,00000180 <foo\+0x180>
00134 00000174 <foo\+0x174> nop
00135 00000178 <foo\+0x178> beqzl zero,00000190 <foo\+0x190>
00136 0000017c <foo\+0x17c> nop
00137 00000180 <foo\+0x180> lw    at,2\(gp\)
00138                      180: R_MIPS_GOT16    \.text
00139 00000184 <foo\+0x184> addiu at,at,592
00140                      184: R_MIPS_LO16     \.text
00141 00000188 <foo\+0x188> jr    at
00142 0000018c <foo\+0x18c> nop
00143 00000190 <foo\+0x190> bltzl a0,000001a0 <foo\+0x1a0>
00144 00000194 <foo\+0x194> nop
00145 00000198 <foo\+0x198> beqzl zero,000001b0 <foo\+0x1b0>
00146 0000019c <foo\+0x19c> nop
00147 000001a0 <foo\+0x1a0> lw    at,2\(gp\)
00148                      1a0: R_MIPS_GOT16    \.text
00149 000001a4 <foo\+0x1a4> addiu at,at,592
00150                      1a4: R_MIPS_LO16     \.text
00151 000001a8 <foo\+0x1a8> jr    at
00152 000001ac <foo\+0x1ac> nop
00153 000001b0 <foo\+0x1b0> bgezl a1,000001c0 <foo\+0x1c0>
00154 000001b4 <foo\+0x1b4> nop
00155 000001b8 <foo\+0x1b8> beqzl zero,000001d0 <foo\+0x1d0>
00156 000001bc <foo\+0x1bc> nop
00157 000001c0 <foo\+0x1c0> lw    at,2\(gp\)
00158                      1c0: R_MIPS_GOT16    \.text
00159 000001c4 <foo\+0x1c4> addiu at,at,592
00160                      1c4: R_MIPS_LO16     \.text
00161 000001c8 <foo\+0x1c8> jr    at
00162 000001cc <foo\+0x1cc> nop
00163 000001d0 <foo\+0x1d0> bc1fl 000001e0 <foo\+0x1e0>
00164 000001d4 <foo\+0x1d4> nop
00165 000001d8 <foo\+0x1d8> beqzl zero,000001f0 <foo\+0x1f0>
00166 000001dc <foo\+0x1dc> nop
00167 000001e0 <foo\+0x1e0> lw    at,2\(gp\)
00168                      1e0: R_MIPS_GOT16    \.text
00169 000001e4 <foo\+0x1e4> addiu at,at,592
00170                      1e4: R_MIPS_LO16     \.text
00171 000001e8 <foo\+0x1e8> jr    at
00172 000001ec <foo\+0x1ec> nop
00173 000001f0 <foo\+0x1f0> bc1tl 00000200 <foo\+0x200>
00174 000001f4 <foo\+0x1f4> nop
00175 000001f8 <foo\+0x1f8> beqzl zero,00000210 <foo\+0x210>
00176 000001fc <foo\+0x1fc> nop
00177 00000200 <foo\+0x200> lw    at,2\(gp\)
00178                      200: R_MIPS_GOT16    \.text
00179 00000204 <foo\+0x204> addiu at,at,592
00180                      204: R_MIPS_LO16     \.text
00181 00000208 <foo\+0x208> jr    at
00182 0000020c <foo\+0x20c> nop
00183 00000210 <foo\+0x210> bltzl v0,00000220 <foo\+0x220>
00184 00000214 <foo\+0x214> nop
00185 00000218 <foo\+0x218> beqzl zero,00000230 <foo\+0x230>
00186 0000021c <foo\+0x21c> nop
00187 00000220 <foo\+0x220> lw    at,2\(gp\)
00188                      220: R_MIPS_GOT16    \.text
00189 00000224 <foo\+0x224> addiu at,at,592
00190                      224: R_MIPS_LO16     \.text
00191 00000228 <foo\+0x228> jalr  at
00192 0000022c <foo\+0x22c> nop
00193 00000230 <foo\+0x230> bgezl v1,00000240 <foo\+0x240>
00194 00000234 <foo\+0x234> nop
00195 00000238 <foo\+0x238> beqzl zero,00000250 <foo\+0x250>
00196 0000023c <foo\+0x23c> nop
00197 00000240 <foo\+0x240> lw    at,2\(gp\)
00198                      240: R_MIPS_GOT16    \.text
00199 00000244 <foo\+0x244> addiu at,at,592
00200                      244: R_MIPS_LO16     \.text
00201 00000248 <foo\+0x248> jalr  at
00202 0000024c <foo\+0x24c> nop
00203        \.\.\.
00204 00020250 <bar> lw    at,0\(gp\)
00205                      20250: R_MIPS_GOT16  \.text
00206 00020254 <bar\+0x4> addiu   at,at,0
00207                      20254: R_MIPS_LO16   \.text
00208 00020258 <bar\+0x8> jr      at
00209 0002025c <bar\+0xc> nop
00210 00020260 <bar\+0x10> lw     at,0\(gp\)
00211                      20260: R_MIPS_GOT16  \.text
00212 00020264 <bar\+0x14> addiu  at,at,0
00213                      20264: R_MIPS_LO16   \.text
00214 00020268 <bar\+0x18> jalr   at
00215 0002026c <bar\+0x1c> nop
00216 00020270 <bar\+0x20> bne    v0,v1,00020284 <bar\+0x34>
00217 00020274 <bar\+0x24> nop
00218 00020278 <bar\+0x28> lw     at,0\(gp\)
00219                      20278: R_MIPS_GOT16  \.text
00220 0002027c <bar\+0x2c> addiu  at,at,0
00221                      2027c: R_MIPS_LO16   \.text
00222 00020280 <bar\+0x30> jr     at
00223 00020284 <bar\+0x34> nop
00224 00020288 <bar\+0x38> beq    a0,a1,0002029c <bar\+0x4c>
00225 0002028c <bar\+0x3c> nop
00226 00020290 <bar\+0x40> lw     at,0\(gp\)
00227                      20290: R_MIPS_GOT16  \.text
00228 00020294 <bar\+0x44> addiu  at,at,0
00229                      20294: R_MIPS_LO16   \.text
00230 00020298 <bar\+0x48> jr     at
00231 0002029c <bar\+0x4c> nop
00232 000202a0 <bar\+0x50> bgtz   v0,000202b4 <bar\+0x64>
00233 000202a4 <bar\+0x54> nop
00234 000202a8 <bar\+0x58> lw     at,0\(gp\)
00235                      202a8: R_MIPS_GOT16  \.text
00236 000202ac <bar\+0x5c> addiu  at,at,0
00237                      202ac: R_MIPS_LO16   \.text
00238 000202b0 <bar\+0x60> jr     at
00239 000202b4 <bar\+0x64> nop
00240 000202b8 <bar\+0x68> blez   v1,000202cc <bar\+0x7c>
00241 000202bc <bar\+0x6c> nop
00242 000202c0 <bar\+0x70> lw     at,0\(gp\)
00243                      202c0: R_MIPS_GOT16  \.text
00244 000202c4 <bar\+0x74> addiu  at,at,0
00245                      202c4: R_MIPS_LO16   \.text
00246 000202c8 <bar\+0x78> jr     at
00247 000202cc <bar\+0x7c> nop
00248 000202d0 <bar\+0x80> bgez   a0,000202e4 <bar\+0x94>
00249 000202d4 <bar\+0x84> nop
00250 000202d8 <bar\+0x88> lw     at,0\(gp\)
00251                      202d8: R_MIPS_GOT16  \.text
00252 000202dc <bar\+0x8c> addiu  at,at,0
00253                      202dc: R_MIPS_LO16   \.text
00254 000202e0 <bar\+0x90> jr     at
00255 000202e4 <bar\+0x94> nop
00256 000202e8 <bar\+0x98> bltz   a1,000202fc <bar\+0xac>
00257 000202ec <bar\+0x9c> nop
00258 000202f0 <bar\+0xa0> lw     at,0\(gp\)
00259                      202f0: R_MIPS_GOT16  \.text
00260 000202f4 <bar\+0xa4> addiu  at,at,0
00261                      202f4: R_MIPS_LO16   \.text
00262 000202f8 <bar\+0xa8> jr     at
00263 000202fc <bar\+0xac> nop
00264 00020300 <bar\+0xb0> bc1t   00020314 <bar\+0xc4>
00265 00020304 <bar\+0xb4> nop
00266 00020308 <bar\+0xb8> lw     at,0\(gp\)
00267                      20308: R_MIPS_GOT16  \.text
00268 0002030c <bar\+0xbc> addiu  at,at,0
00269                      2030c: R_MIPS_LO16   \.text
00270 00020310 <bar\+0xc0> jr     at
00271 00020314 <bar\+0xc4> nop
00272 00020318 <bar\+0xc8> bc1f   0002032c <bar\+0xdc>
00273 0002031c <bar\+0xcc> nop
00274 00020320 <bar\+0xd0> lw     at,0\(gp\)
00275                      20320: R_MIPS_GOT16  \.text
00276 00020324 <bar\+0xd4> addiu  at,at,0
00277                      20324: R_MIPS_LO16   \.text
00278 00020328 <bar\+0xd8> jr     at
00279 0002032c <bar\+0xdc> nop
00280 00020330 <bar\+0xe0> bgez   v0,00020344 <bar\+0xf4>
00281 00020334 <bar\+0xe4> nop
00282 00020338 <bar\+0xe8> lw     at,0\(gp\)
00283                      20338: R_MIPS_GOT16  \.text
00284 0002033c <bar\+0xec> addiu  at,at,0
00285                      2033c: R_MIPS_LO16   \.text
00286 00020340 <bar\+0xf0> jalr   at
00287 00020344 <bar\+0xf4> nop
00288 00020348 <bar\+0xf8> bltz   v1,0002035c <bar\+0x10c>
00289 0002034c <bar\+0xfc> nop
00290 00020350 <bar\+0x100> lw    at,0\(gp\)
00291                      20350: R_MIPS_GOT16  \.text
00292 00020354 <bar\+0x104> addiu at,at,0
00293                      20354: R_MIPS_LO16   \.text
00294 00020358 <bar\+0x108> jalr  at
00295 0002035c <bar\+0x10c> nop
00296 00020360 <bar\+0x110> beql  v0,v1,00020370 <bar\+0x120>
00297 00020364 <bar\+0x114> nop
00298 00020368 <bar\+0x118> beqzl zero,00020380 <bar\+0x130>
00299 0002036c <bar\+0x11c> nop
00300 00020370 <bar\+0x120> lw    at,0\(gp\)
00301                      20370: R_MIPS_GOT16  \.text
00302 00020374 <bar\+0x124> addiu at,at,0
00303                      20374: R_MIPS_LO16   \.text
00304 00020378 <bar\+0x128> jr    at
00305 0002037c <bar\+0x12c> nop
00306 00020380 <bar\+0x130> bnel  a0,a1,00020390 <bar\+0x140>
00307 00020384 <bar\+0x134> nop
00308 00020388 <bar\+0x138> beqzl zero,000203a0 <bar\+0x150>
00309 0002038c <bar\+0x13c> nop
00310 00020390 <bar\+0x140> lw    at,0\(gp\)
00311                      20390: R_MIPS_GOT16  \.text
00312 00020394 <bar\+0x144> addiu at,at,0
00313                      20394: R_MIPS_LO16   \.text
00314 00020398 <bar\+0x148> jr    at
00315 0002039c <bar\+0x14c> nop
00316 000203a0 <bar\+0x150> blezl v0,000203b0 <bar\+0x160>
00317 000203a4 <bar\+0x154> nop
00318 000203a8 <bar\+0x158> beqzl zero,000203c0 <bar\+0x170>
00319 000203ac <bar\+0x15c> nop
00320 000203b0 <bar\+0x160> lw    at,0\(gp\)
00321                      203b0: R_MIPS_GOT16  \.text
00322 000203b4 <bar\+0x164> addiu at,at,0
00323                      203b4: R_MIPS_LO16   \.text
00324 000203b8 <bar\+0x168> jr    at
00325 000203bc <bar\+0x16c> nop
00326 000203c0 <bar\+0x170> bgtzl v1,000203d0 <bar\+0x180>
00327 000203c4 <bar\+0x174> nop
00328 000203c8 <bar\+0x178> beqzl zero,000203e0 <bar\+0x190>
00329 000203cc <bar\+0x17c> nop
00330 000203d0 <bar\+0x180> lw    at,0\(gp\)
00331                      203d0: R_MIPS_GOT16  \.text
00332 000203d4 <bar\+0x184> addiu at,at,0
00333                      203d4: R_MIPS_LO16   \.text
00334 000203d8 <bar\+0x188> jr    at
00335 000203dc <bar\+0x18c> nop
00336 000203e0 <bar\+0x190> bltzl a0,000203f0 <bar\+0x1a0>
00337 000203e4 <bar\+0x194> nop
00338 000203e8 <bar\+0x198> beqzl zero,00020400 <bar\+0x1b0>
00339 000203ec <bar\+0x19c> nop
00340 000203f0 <bar\+0x1a0> lw    at,0\(gp\)
00341                      203f0: R_MIPS_GOT16  \.text
00342 000203f4 <bar\+0x1a4> addiu at,at,0
00343                      203f4: R_MIPS_LO16   \.text
00344 000203f8 <bar\+0x1a8> jr    at
00345 000203fc <bar\+0x1ac> nop
00346 00020400 <bar\+0x1b0> bgezl a1,00020410 <bar\+0x1c0>
00347 00020404 <bar\+0x1b4> nop
00348 00020408 <bar\+0x1b8> beqzl zero,00020420 <bar\+0x1d0>
00349 0002040c <bar\+0x1bc> nop
00350 00020410 <bar\+0x1c0> lw    at,0\(gp\)
00351                      20410: R_MIPS_GOT16  \.text
00352 00020414 <bar\+0x1c4> addiu at,at,0
00353                      20414: R_MIPS_LO16   \.text
00354 00020418 <bar\+0x1c8> jr    at
00355 0002041c <bar\+0x1cc> nop
00356 00020420 <bar\+0x1d0> bc1fl 00020430 <bar\+0x1e0>
00357 00020424 <bar\+0x1d4> nop
00358 00020428 <bar\+0x1d8> beqzl zero,00020440 <bar\+0x1f0>
00359 0002042c <bar\+0x1dc> nop
00360 00020430 <bar\+0x1e0> lw    at,0\(gp\)
00361                      20430: R_MIPS_GOT16  \.text
00362 00020434 <bar\+0x1e4> addiu at,at,0
00363                      20434: R_MIPS_LO16   \.text
00364 00020438 <bar\+0x1e8> jr    at
00365 0002043c <bar\+0x1ec> nop
00366 00020440 <bar\+0x1f0> bc1tl 00020450 <bar\+0x200>
00367 00020444 <bar\+0x1f4> nop
00368 00020448 <bar\+0x1f8> beqzl zero,00020460 <bar\+0x210>
00369 0002044c <bar\+0x1fc> nop
00370 00020450 <bar\+0x200> lw    at,0\(gp\)
00371                      20450: R_MIPS_GOT16  \.text
00372 00020454 <bar\+0x204> addiu at,at,0
00373                      20454: R_MIPS_LO16   \.text
00374 00020458 <bar\+0x208> jr    at
00375 0002045c <bar\+0x20c> nop
00376 00020460 <bar\+0x210> bltzl v0,00020470 <bar\+0x220>
00377 00020464 <bar\+0x214> nop
00378 00020468 <bar\+0x218> beqzl zero,00020480 <bar\+0x230>
00379 0002046c <bar\+0x21c> nop
00380 00020470 <bar\+0x220> lw    at,0\(gp\)
00381                      20470: R_MIPS_GOT16  \.text
00382 00020474 <bar\+0x224> addiu at,at,0
00383                      20474: R_MIPS_LO16   \.text
00384 00020478 <bar\+0x228> jalr  at
00385 0002047c <bar\+0x22c> nop
00386 00020480 <bar\+0x230> bgezl v1,00020490 <bar\+0x240>
00387 00020484 <bar\+0x234> nop
00388 00020488 <bar\+0x238> beqzl zero,000204a0 <bar\+0x250>
00389 0002048c <bar\+0x23c> nop
00390 00020490 <bar\+0x240> lw    at,0\(gp\)
00391                      20490: R_MIPS_GOT16  \.text
00392 00020494 <bar\+0x244> addiu at,at,0
00393                      20494: R_MIPS_LO16   \.text
00394 00020498 <bar\+0x248> jalr  at
00395 0002049c <bar\+0x24c> nop