diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2009-09-13 19:18:11 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2009-09-13 19:18:11 +0000 |
commit | 1180b5a4deb36962eb5ad244f32d93e4ad519370 (patch) | |
tree | 60ffcaeeb998f209bb52cc696fff9bb1e89b71cf /gas/testsuite/gas/mips/jalr2.s | |
parent | 3c0bfb2a239710f52543cc9e1a434814e82bd120 (diff) | |
download | ppe42-binutils-1180b5a4deb36962eb5ad244f32d93e4ad519370.tar.gz ppe42-binutils-1180b5a4deb36962eb5ad244f32d93e4ad519370.zip |
gas/
* config/tc-mips.c (MIPS_JALR_HINT_P): Take an expr argument.
Require the target to be a bare symbol on targets with
in-place addends.
(macro_build_jalr): Update accordingly.
(mips_fix_adjustable): Don't reduce R_MIPS_JALRs on targets
with in-place addends.
gas/testsuite/
* gas/mips/jalr2.s, gas/mips/jalr2.d: New test.
* gas/mips/jal-svr4pic.d: Don't expect R_MIPS_JALRs to be reduced.
* gas/mips/jal-xgot.d: Likewise.
* gas/mips/mips-abi32-pic2.d: Likewise.
* gas/mips/mips.exp: Run it.
Diffstat (limited to 'gas/testsuite/gas/mips/jalr2.s')
-rw-r--r-- | gas/testsuite/gas/mips/jalr2.s | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gas/testsuite/gas/mips/jalr2.s b/gas/testsuite/gas/mips/jalr2.s new file mode 100644 index 0000000000..6b100d7823 --- /dev/null +++ b/gas/testsuite/gas/mips/jalr2.s @@ -0,0 +1,15 @@ + .ent test +test: + .frame $sp,32,$31 + .cprestore 16 + jal local + jal local+12 + jal global + jal global+12 + .end test + +local: + nop + nop + nop + nop |