mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
[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.
This commit is contained in:

committed by
Nick Clifton

parent
f32682eaca
commit
59e28a9767
@ -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>
|
2020-04-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR gas/25756
|
PR gas/25756
|
||||||
|
@ -2794,7 +2794,7 @@ m68k_ip (char *instring)
|
|||||||
&& opP->index.reg <= ZDATA7)
|
&& opP->index.reg <= ZDATA7)
|
||||||
nextword |= (opP->index.reg - ZDATA0) << 12;
|
nextword |= (opP->index.reg - ZDATA0) << 12;
|
||||||
else if (opP->index.reg >= ZADDR0
|
else if (opP->index.reg >= ZADDR0
|
||||||
|| opP->index.reg <= ZADDR7)
|
&& opP->index.reg <= ZADDR7)
|
||||||
nextword |= (opP->index.reg - ZADDR0 + 8) << 12;
|
nextword |= (opP->index.reg - ZADDR0 + 8) << 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user