MIPS16/GAS/testsuite: Add cross-section R_MIPS16_PC16_S1 relocation tests
authorMaciej W. Rozycki <macro@mips.com>
Tue, 20 Feb 2018 20:51:37 +0000 (20:51 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Tue, 20 Feb 2018 20:51:37 +0000 (20:51 +0000)
commit1f1e0a5d0eb8474321a1a6431b4171f67a438231
treee8ff299cb7783d19d0f2b1ca97904808b5234eae
parent75f31665204bf965cc5b3dd699636be12fb6bcfa
MIPS16/GAS/testsuite: Add cross-section R_MIPS16_PC16_S1 relocation tests

Add a pair of MIPS16 branch tests to verify correct R_MIPS16_PC16_S1
relocation generation for cross-section references in a single source.
This complements commit c9775dde3277 ("MIPS16: Add R_MIPS16_PC16_S1
branch relocation support").

gas/
* testsuite/gas/mips/mips16-branch-reloc-4.d: New test.
* testsuite/gas/mips/mips16-branch-reloc-5.d: New test.
* testsuite/gas/mips/mips16-branch-reloc-4.s: New test source.
* testsuite/gas/mips/mips16-branch-reloc-5.s: New test source.
* testsuite/gas/mips/mips.exp: Run the new tests.
gas/ChangeLog
gas/testsuite/gas/mips/mips.exp
gas/testsuite/gas/mips/mips16-branch-reloc-4.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips16-branch-reloc-4.s [new file with mode: 0644]
gas/testsuite/gas/mips/mips16-branch-reloc-5.d [new file with mode: 0644]
gas/testsuite/gas/mips/mips16-branch-reloc-5.s [new file with mode: 0644]