aboutsummaryrefslogtreecommitdiff
path: root/opcodes/rl78-decode.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2016-01-14 16:23:35 +0000
committerNick Clifton <nickc@redhat.com>2016-01-14 16:23:35 +0000
commit4d82fe66e8d38b20ad429cb99a99ed8741336d72 (patch)
tree56de9e0bebe4497372817e943c106ccdb8124aa1 /opcodes/rl78-decode.c
parente7cf25a8ab54cd02b48e7443ef25764475f02315 (diff)
downloadgdb-4d82fe66e8d38b20ad429cb99a99ed8741336d72.zip
gdb-4d82fe66e8d38b20ad429cb99a99ed8741336d72.tar.gz
gdb-4d82fe66e8d38b20ad429cb99a99ed8741336d72.tar.bz2
Fix display of RL78 MOVW instructions that use the stack pointer.
* rl78-decode.opc (rl78_decode_opcode): Add 's' operand to movw instructions that can support stack pointer operations. * rl78-decode.c: Regenerate. * rl78-dis.c: Fix display of stack pointer in MOVW based instructions. * testsuite/gas/rl78/sp-relative-movw.s: New test. * testsuite/gas/rl78/sp-relative-movw.d: Expected disassembly. * testsuite/gas/rl78/rl78.exp: Run the new test.
Diffstat (limited to 'opcodes/rl78-decode.c')
-rw-r--r--opcodes/rl78-decode.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/rl78-decode.c b/opcodes/rl78-decode.c
index 0103850..9c391565 100644
--- a/opcodes/rl78-decode.c
+++ b/opcodes/rl78-decode.c
@@ -5347,7 +5347,7 @@ rl78_decode_opcode (unsigned long pc AU,
op[0]);
printf (" ra = 0x%x\n", ra);
}
- SYNTAX("movw %0, %e!1");
+ SYNTAX("movw %0, %es!1");
#line 886 "rl78-decode.opc"
ID(mov); W(); DRW(ra); SM(None, IMMU(2));