~ubuntu-branches/ubuntu/utopic/binutils-arm64-cross/utopic

« back to all changes in this revision

Viewing changes to binutils-2.23.52.20130611/ld/testsuite/ld-mips-elf/mips16-pic-4c.s

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-06-20 17:38:09 UTC
  • Revision ID: package-import@ubuntu.com-20130620173809-app8lzgvymy5fg6c
Tags: 0.7
Build-depend on binutils-source (>= 2.23.52.20130620-1~).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
        .abicalls
 
2
        .option pic0
 
3
        .set    noreorder
 
4
 
 
5
        # Create a call stub for f2.  We pretend that f2 takes floating-point
 
6
        # arguments but doesn't return a floating-point value.
 
7
 
 
8
        .section .mips16.call.f2, "ax", @progbits
 
9
        .ent    __call
 
10
__call:
 
11
        la      $25,f2
 
12
        jr      $25
 
13
        nop
 
14
        .end    __call
 
15
 
 
16
        # Create a call stub for f3.  We pretend that f3 returns a
 
17
        # floating-point value.
 
18
 
 
19
        .section .mips16.call.fp.f3, "ax", @progbits
 
20
        .ent    __call_fp
 
21
__call_fp:
 
22
        la      $25,f3
 
23
        jr      $25
 
24
        nop
 
25
        .end    __call_fp
 
26
 
 
27
        # Make sure that f2 and f3 are called from MIPS16 code.
 
28
        .set    mips16
 
29
        .text
 
30
        .global __start
 
31
        .type   __start,@function
 
32
        .ent    __start
 
33
__start:
 
34
        jal     f2
 
35
        nop
 
36
        jal     f3
 
37
        nop
 
38
        .end    __start