Fix encoding of "addw ax, [hl]" and "subw ax, [hl]".
authorNick Clifton <nickc@redhat.com>
Wed, 4 Feb 2015 12:00:58 +0000 (12:00 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 4 Feb 2015 12:00:58 +0000 (12:00 +0000)
* config/rl78-parse.y (addsubw): Fix encoding of [HL] variant of
these instructions.

gas/ChangeLog
gas/config/rl78-parse.y

index 5e773600ee2e255a2b8e13b1e4e9b3247443194a..80dce667f7329ac158876fa9d6fd79c91078782c 100644 (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.
index d1cf71c523b6bfcf781ddb6cdc7f3f950b770689..a38197347af6c8919e0d278025bbdb3c115f7bc3 100644 (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);
This page took 0.027237 seconds and 4 git commands to generate.