Upload Tizen:Base source
[external/binutils.git] / ld / testsuite / ld-mips-elf / jr-to-b-1.s
1         .abicalls
2         .text
3         .align  2
4         .set    nomips16
5         .ent    s
6         .type   s, @function
7 s:
8         .frame  $sp,0,$31               # vars= 0, regs= 0/0, args= 0, gp= 0
9         .mask   0x00000000,0
10         .fmask  0x00000000,0
11         .set    noreorder
12         .set    nomacro
13         j       $31
14         li      $2,1                    # 0x1
15
16         .set    macro
17         .set    reorder
18         .end    s
19         .size   s, .-s
20         .align  2
21         .globl  t
22         .set    nomips16
23         .ent    t
24         .type   t, @function
25 t:
26         .frame  $sp,0,$31               # vars= 0, regs= 0/0, args= 0, gp= 0
27         .mask   0x00000000,0
28         .fmask  0x00000000,0
29         .set    noreorder
30         .cpload $25
31         .set    nomacro
32         lw      $25,%got(s)($28)
33         nop
34         addiu   $25,$25,%lo(s)
35         .reloc  1f,R_MIPS_JALR,s
36 1:      jr      $25
37         nop
38
39         .set    macro
40         .set    reorder
41         .end    t
42         .size   t, .-t