summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/mips/jalr2.s
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2009-09-13 19:18:11 +0000
committerRichard Sandiford <rsandifo@nildram.co.uk>2009-09-13 19:18:11 +0000
commit9c5e80dd47ce21fea627199ca39718237bd04af5 (patch)
tree134fb28e034015f7277efee2bfadf5927cc32f26 /gas/testsuite/gas/mips/jalr2.s
parent3e8924c4fce01e968d3d12b5deed49952192c59f (diff)
downloadbinutils-redhat-9c5e80dd47ce21fea627199ca39718237bd04af5.tar.gz
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.s15
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