gas:
[binutils/dougsmingw.git] / ld / testsuite / ld-mips-elf / mips16-pic-4c.s
blob338d378d75693c165a1ac4e288143052e3bb2af1
1 .abicalls
2 .option pic0
3 .set noreorder
5 # Create a call stub for f2. We pretend that f2 takes floating-point
6 # arguments but doesn't return a floating-point value.
8 .section .mips16.call.f2, "ax", @progbits
9 .ent __call
10 __call:
11 la $25,f2
12 jr $25
13 nop
14 .end __call
16 # Create a call stub for f3. We pretend that f3 returns a
17 # floating-point value.
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
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