2010-01-06 Quentin Neill <quentin.neill@amd.com>
[deliverable/binutils-gdb.git] / gas / testsuite / gas / m32r / pic.s
CommitLineData
6edf0760
NC
1 .section .text
2# R_M32R_GOTPC24
3pic_gotpc:
4 bl.s .+4
5 ld24 r12,#_GLOBAL_OFFSET_TABLE_
6 add r12,lr
7
8# R_M32R_GOTPC_HI_ULO
9# R_M32R_GOTPC_HI_SLO
10# R_M32R_GOTPC_LO
11pic_gotpc_slo:
12 bl.s .+4
13 seth r12,#shigh(_GLOBAL_OFFSET_TABLE_)
14 add3 r12,r12,#low(_GLOBAL_OFFSET_TABLE_+4)
15 add r12,lr
16
17pic_gotpc_ulo:
18 bl.s .+4
19 seth r12,#high(_GLOBAL_OFFSET_TABLE_)
20 or3 r12,r12,#low(_GLOBAL_OFFSET_TABLE_+4)
21 add r12,lr
22
23# R_M32R_GOT24
24pic_got:
25 .global sym
26 ld24 r0,#sym
27
28# R_M32R_GOT16_HI_ULO
29# R_M32R_GOT16_HI_SLO
30# R_M32R_GOT16_LO
31pic_got16:
32 .global sym2
33 seth r12,#shigh(sym2)
34 add3 r12,r12,#low(sym2+4)
35 seth r12,#high(sym2)
36 or3 r12,r12,#low(sym2+4)
37
38# R_M32R_26_PLTREL
39pic_plt:
40 .global func
41 bl func
42
43 .end
This page took 0.253402 seconds and 4 git commands to generate.