c46f42e79d6f19176e8e1312f17f24d75333ca17
[binutils-gdb.git] / gas / testsuite / gas / mips / option-pic-relax-4.d
1 #objdump: -dr --prefix-addresses --show-raw-insn
2 #name: MIPS `.option picX' with relaxation 4
3 #as: -32 -mmicromips --relax-branch
4 #stderr: option-pic-relax-4.l
5
6 # Verify that relaxation is done according to the `.option picX' setting
7 # at the time the relevant instruction was assembled rather than at
8 # relaxation time.
9
10 .*: +file format .*mips.*
11
12 Disassembly of section \.text:
13 [0-9a-f]+ <[^>]*> 41bc 0000 lui gp,0x0
14 [ ]*[0-9a-f]+: R_MICROMIPS_HI16 _gp_disp
15 [0-9a-f]+ <[^>]*> 339c 0000 addiu gp,gp,0
16 [ ]*[0-9a-f]+: R_MICROMIPS_LO16 _gp_disp
17 [0-9a-f]+ <[^>]*> 033c e150 addu gp,gp,t9
18 [0-9a-f]+ <[^>]*> 0c44 move v0,a0
19 [0-9a-f]+ <[^>]*> fc3c 0001 lw at,1\(gp\)
20 [ ]*[0-9a-f]+: R_MICROMIPS_GOT16 \.text
21 [0-9a-f]+ <[^>]*> 3021 0019 addiu at,at,25
22 [ ]*[0-9a-f]+: R_MICROMIPS_LO16 \.text
23 [0-9a-f]+ <[^>]*> 4581 jr at
24 [0-9a-f]+ <[^>]*> 0c65 move v1,a1
25 [0-9a-f]+ <[^>]*> 0c00 nop
26 \.\.\.
27 [0-9a-f]+ <[^>]*> 45bf jrc ra
28 \.\.\.