blob: 3cd0ae8437062c590fabb07d99b8da64ac8eb9a2 [file] [log] [blame]
#objdump: -dr --prefix-addresses --show-raw-insn
#name: MIPS `.option picX' with relaxation 2
#as: -32 -mips2 --relax-branch
#warning_output: option-pic-relax-2.l
# Verify that relaxation is done according to the `.option picX' setting
# at the time the relevant instruction was assembled rather than at
# relaxation time.
.*: +file format .*mips.*
Disassembly of section \.text:
[0-9a-f]+ <[^>]*> 3c1c0000 lui gp,0x0
[ ]*[0-9a-f]+: R_MIPS_HI16 _gp_disp
[0-9a-f]+ <[^>]*> 279c0000 addiu gp,gp,0
[ ]*[0-9a-f]+: R_MIPS_LO16 _gp_disp
[0-9a-f]+ <[^>]*> 0399e021 addu gp,gp,t9
[0-9a-f]+ <[^>]*> 00801025 move v0,a0
[0-9a-f]+ <[^>]*> 8f810002 lw at,2\(gp\)
[ ]*[0-9a-f]+: R_MIPS_GOT16 \.text
[0-9a-f]+ <[^>]*> 2421001c addiu at,at,28
[ ]*[0-9a-f]+: R_MIPS_LO16 \.text
[0-9a-f]+ <[^>]*> 00200008 jr at
[0-9a-f]+ <[^>]*> 00a01825 move v1,a1
\.\.\.
[0-9a-f]+ <[^>]*> 03e00008 jr ra
[0-9a-f]+ <[^>]*> 00000000 nop
\.\.\.