From 4d82fe66e8d38b20ad429cb99a99ed8741336d72 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Thu, 14 Jan 2016 16:23:35 +0000 Subject: 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. --- opcodes/rl78-decode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opcodes/rl78-decode.c') 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)); -- cgit v1.1