This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] MIPS16/opcodes: Fix PC-relative operation delay-slot adjustment
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Thu, 08 Dec 2016 19:36:44 -0500
- Subject: [binutils-gdb] MIPS16/opcodes: Fix PC-relative operation delay-slot adjustment
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 860b03a8f357d1565bd9d79ae25121059b2d28ae ***
Author: Maciej W. Rozycki <macro@imgtec.com>
Branch: master
Commit: 860b03a8f357d1565bd9d79ae25121059b2d28ae
MIPS16/opcodes: Fix PC-relative operation delay-slot adjustment
Complement commit dd8b7c222e0e ("MIPS: mips16e jalrc/jrc opcodes"),
<https://sourceware.org/ml/binutils/2005-07/msg00349.html>, and stop the
disassembler making a delay-slot adjustment for PC-relative operations
following either MIPS16e compact jumps, or undefined RR/J(AL)R(C)
encodings that have the `l' (link) and `ra' (source register is `ra')
bits set both at a time. Adjust code description for accuracy. Add a
suitable test case.
opcodes/
* mips-dis.c (print_mips16_insn_arg): Avoid delay-slot
adjustment for PC-relative operations following MIPS16e compact
jumps or undefined RR/J(AL)R(C) encodings.
binutils/
* testsuite/binutils-all/mips/mips16-pcrel.d: New test.
* testsuite/binutils-all/mips/mips16-pcrel.s: New test source.
* testsuite/binutils-all/mips/mips.exp: Run the new test.