mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
0375b0a537
Repeat `PIC and non-PIC test 1' checks for microMIPS LA25 stubs, covering code generation and stub symbol annotation. ld/ * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.dd: New test. * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips-rel.nd: New test. * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.dd: New test. * testsuite/ld-mips-elf/pic-and-nonpic-1-micromips.nd: New test. * testsuite/ld-mips-elf/pic-and-nonpic-1a-micromips.s: New test source. * testsuite/ld-mips-elf/pic-and-nonpic-1b-micromips.s: New test source. * testsuite/ld-mips-elf/mips-elf.exp: Run the new tests.
32 lines
330 B
ArmAsm
32 lines
330 B
ArmAsm
.abicalls
|
|
.global f1
|
|
.global f2
|
|
.global f3
|
|
.set micromips
|
|
.ent f1
|
|
f1:
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
.option pic0
|
|
jal f3
|
|
.option pic2
|
|
jr $31
|
|
.end f1
|
|
|
|
.ent f2
|
|
f2:
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
jr $31
|
|
.end f2
|
|
|
|
.set nomicromips
|
|
.ent f3
|
|
f3:
|
|
.set noreorder
|
|
.cpload $25
|
|
.set reorder
|
|
.end f3
|