This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".
- From: Nick Clifton <nickc at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 4 Feb 2015 12:01:47 -0000
- Subject: [binutils-gdb] Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3101e6373ee4bd78f7efbe21a730a4327b0ca8f6
commit 3101e6373ee4bd78f7efbe21a730a4327b0ca8f6
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Feb 4 12:00:58 2015 +0000
Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".
* config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
these instructions.
Diff:
---
gas/ChangeLog | 5 +++++
gas/config/rl78-parse.y | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5e77360..80dce66 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2015-02-04 Nick Clifton <nickc@redhat.com>
+
+ * config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
+ these instructions.
+
2015-02-03 Renlin Li <renlin.li@arm.com>
* doc/c-aarch64.texi (.arch): Document the directive.
diff --git a/gas/config/rl78-parse.y b/gas/config/rl78-parse.y
index d1cf71c..a381973 100644
--- a/gas/config/rl78-parse.y
+++ b/gas/config/rl78-parse.y
@@ -259,7 +259,7 @@ statement :
{ B2 (0x61, 0x09|$1); O1 ($8); }
| addsubw AX ',' opt_es '[' HL ']'
- { B4 (0x61, 0x09|$1, 0, 0); }
+ { B3 (0x61, 0x09|$1, 0); }
| addsubw SP ',' '#' EXPR
{ B1 ($1 ? 0x20 : 0x10); O1 ($5);