diff options
Diffstat (limited to 'ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s')
-rw-r--r-- | ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s b/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s new file mode 100644 index 0000000..fb8eb81 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a-r6.s @@ -0,0 +1,26 @@ + .abicalls + .set nomips16 + .global foo + .ent foo +foo: + .set noreorder + .cpload $25 + .set reorder + lw $25,%call16(foo)($28) + lw $2,%got(data)($28) + addiu $2,$2,%lo(data) + jrc $25 + .end foo + + .global bar + .ent bar +bar: + .set noreorder + .cpload $25 + .set reorder + lw $25,%call16(ext)($28) + jrc $25 + .end bar + + .data +data: .word 0x12345678 |