diff options
author | Gunther Nikl <gnikl@justmail.de> | 2020-04-02 08:57:45 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-04-02 08:57:45 +0100 |
commit | 59e28a9767bf237951839204ebc3e412bc27a175 (patch) | |
tree | 78e3790f7d307175ac01c6c730335cc959ec2cde | |
parent | f32682eacae76881752bae2a72c485b98badb2c3 (diff) | |
download | binutils-59e28a9767bf237951839204ebc3e412bc27a175.zip binutils-59e28a9767bf237951839204ebc3e412bc27a175.tar.gz binutils-59e28a9767bf237951839204ebc3e412bc27a175.tar.bz2 |
[PATCH gas/m68k] Fix a register range check
* config/tc-m68k.c (m68k_ip): Fix range check for index register
with a suppressed address register.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/config/tc-m68k.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index ef0217e..83108d3 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2020-04-02 Gunther Nikl <gnikl@justmail.de> + + * config/tc-m68k.c (m68k_ip): Fix range check for index register + with a suppressed address register. + 2020-04-01 H.J. Lu <hongjiu.lu@intel.com> PR gas/25756 diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 5483f8e..490df5d 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -2794,7 +2794,7 @@ m68k_ip (char *instring) && opP->index.reg <= ZDATA7) nextword |= (opP->index.reg - ZDATA0) << 12; else if (opP->index.reg >= ZADDR0 - || opP->index.reg <= ZADDR7) + && opP->index.reg <= ZADDR7) nextword |= (opP->index.reg - ZADDR0 + 8) << 12; } |