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 /gas/config | |
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.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-m68k.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |