Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".

* config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
	these instructions.
This commit is contained in:
Nick Clifton 2015-02-04 12:00:58 +00:00
parent 518be979d9
commit 3101e6373e
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);