diff options
author | Yuriy Kolerov <kolerov93@gmail.com> | 2024-02-14 18:16:16 +0000 |
---|---|---|
committer | Shahab Vahedi <shahab@synopsys.com> | 2024-02-21 14:15:09 +0100 |
commit | 33283d91d94e205ba34306cd1c253b9faceb4dd9 (patch) | |
tree | e1b95cde3748e56e0c51fa28e4f349efde2fd360 /gdb/unittests/array-view-selftests.c | |
parent | f96127310144d360eac93444c1b6efe80497d163 (diff) | |
download | binutils-33283d91d94e205ba34306cd1c253b9faceb4dd9.zip binutils-33283d91d94e205ba34306cd1c253b9faceb4dd9.tar.gz binutils-33283d91d94e205ba34306cd1c253b9faceb4dd9.tar.bz2 |
arc: Determine a branch target of DBNZ correctly
DBNZ instruction was moved from BRANCH class to a separate one - DBNZ.
Thus, it must be processed separately in arc_insn_get_branch_target
to correctly determine an offset for a possible branch.
The testsuite for DBNZ instruction verifies these cases:
1. Check that dbnz does not branch and falls through if its source
register is 0 after decrementing. GDB must successfully break
on the following instruction after stepping over.
2. Check that dbnz branches to the target correctly if its source register
is not 0 after decrementing - GDB must successfully break on the target
instruction if a forward branch is performed after stepping over.
3. The same as point 2 but for a backward branching case.
Signed-off-by: Yuriy Kolerov <kolerov93@gmail.com>
Diffstat (limited to 'gdb/unittests/array-view-selftests.c')
0 files changed, 0 insertions, 0 deletions