Rework the alignment check for BFD_RELOC_MIPS_18_PCREL_S3.
authorMatthew Fortune <matthew.fortune@imgtec.com>
Tue, 16 Dec 2014 12:39:22 +0000 (12:39 +0000)
committerMatthew Fortune <matthew.fortune@imgtec.com>
Fri, 19 Dec 2014 20:24:16 +0000 (20:24 +0000)
commit0866e94c879f256ddb1bb7149c5f9fc7b80fda89
tree8dd3d1c05ec9f39d52894befbe3ca1e1b12f7464
parent13e322759bd9d6d64e68b200084341681687fb74
Rework the alignment check for BFD_RELOC_MIPS_18_PCREL_S3.

gas/

* config/tc-mips.c (md_apply_fix): Apply alignment check
to the symbol and offset rather than *valP for
BFD_RELOC_MIPS_18_PCREL_S3.  Also update the error message
for BFD_RELOC_MIPS_19_PCREL_S2.

gas/testsuite/

* gas/mips/r6-64.s: Remove .align directives from LDPC
instructions and add further tests for LDPC.
* gas/mips/r6-64-n32.d: remove the NOPs from LDPC expected
output and update for new tests.
* gas/mips/r6-64-n64.d: Likewise.
* gas/mips/ldpc-unalign.l: New file.
* gas/mips/ldpc-unalign.s: Likewise.
* gas/mips/mips.exp: Run ldpc-unalign test.
gas/ChangeLog
gas/config/tc-mips.c
gas/testsuite/ChangeLog
gas/testsuite/gas/mips/ldpc-unalign.l [new file with mode: 0644]
gas/testsuite/gas/mips/ldpc-unalign.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/r6-64-n32.d
gas/testsuite/gas/mips/r6-64-n64.d
gas/testsuite/gas/mips/r6-64.s