diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-06-13 12:38:00 -0700 |
---|---|---|
committer | Andrew Hsieh <andrewhsieh@google.com> | 2014-06-13 12:38:00 -0700 |
commit | 54f1b3cf509cd889905287cb8ce6c5ae33911a21 (patch) | |
tree | e39b1a7fa04db86a8215b7f9d4656d74e394aec0 /binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s | |
parent | 2a6558a8ecfb81d75215b4ec7dc61113e12cfd5f (diff) | |
download | toolchain_binutils-54f1b3cf509cd889905287cb8ce6c5ae33911a21.tar.gz toolchain_binutils-54f1b3cf509cd889905287cb8ce6c5ae33911a21.tar.bz2 toolchain_binutils-54f1b3cf509cd889905287cb8ce6c5ae33911a21.zip |
Add upstream binutils-2.25 snapshot 4/4 2014
For MIPS -mmsa support
Change-Id: I08c4f002fa7b33dec85ed75956e6ab551bb03c96
Diffstat (limited to 'binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s')
-rw-r--r-- | binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s b/binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s new file mode 100644 index 00000000..48cf97f0 --- /dev/null +++ b/binutils-2.25/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32b.s @@ -0,0 +1,39 @@ + .set noreorder + .abicalls + .global f1 + .ent f1 +f1: + .option pic0 + jal f3 + .option pic2 + lui $2,%hi(f2) + jr $31 + addiu $2,$2,%lo(f2) + .end f1 + + .global f2 + .ent f2 +f2: + lui $28,%hi(%neg(%gp_rel(f2))) + addu $28,$28,$25 + addiu $28,$28,%lo(%neg(%gp_rel(f2))) + lw $25,%call16(extf1)($28) + lw $4,%got_disp(extf2)($28) + lw $5,%got_disp(extd1)($28) + jalr $25 + lw $6,%got_disp(extd2)($28) + lw $25,%call16(extf3)($28) + jr $25 + lw $4,%got_disp(extf4)($28) + .end f2 + + .global f3 + .ent f3 +f3: + jr $31 + nop + .end f3 + + .data + .word extd1 + .word extd3 |