aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2010-12-18 05:40:46 +0000
committerDJ Delorie <dj@redhat.com>2010-12-18 05:40:46 +0000
commite6a3fb4b5cc97668b0822c98d7896a5fca165360 (patch)
treecc63c5fdd27b8048cc9a12c38024c4818b644988 /gas
parent57bf2d7ed85a9edec723fbfb4871c78b29143c2d (diff)
downloadgdb-e6a3fb4b5cc97668b0822c98d7896a5fca165360.zip
gdb-e6a3fb4b5cc97668b0822c98d7896a5fca165360.tar.gz
gdb-e6a3fb4b5cc97668b0822c98d7896a5fca165360.tar.bz2
* config/rx-parse.y (SUB): Correct subtraction of immediate
pattern.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/rx-parse.y2
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 507c046..ca9b61d 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2010-12-18 DJ Delorie <dj@redhat.com>
+
+ * config/rx-parse.y (SUB): Correct subtraction of immediate
+ pattern.
+
2010-12-16 DJ Delorie <dj@redhat.com>
* config/tc-rx.c (rx_validate_fix_sub): Permit subtraction in more
diff --git a/gas/config/rx-parse.y b/gas/config/rx-parse.y
index 0e1093a..2d1f85e 100644
--- a/gas/config/rx-parse.y
+++ b/gas/config/rx-parse.y
@@ -331,7 +331,7 @@ statement :
{ B2 (0x60, 0); FE ($3, 8, 4); F ($5, 12, 4); }
else
/* This is really an add, but we negate the immediate. */
- { B2 (0x38, 0); F ($5, 8, 4); F ($5, 12, 4); NIMM ($3, 6); } } /* ? */
+ { B2 (0x70, 0); F ($5, 8, 4); F ($5, 12, 4); NIMM ($3, 6); } }
| CMP '#' EXPR ',' REG
{ if (rx_uintop ($3, 4))