* config/tc-mn10300.c (mn10300_insert_operand): Shift low part

of a MN10300_OPERAND_SPLIT operand by operand->shift.
For bset, bclr & btst.
This commit is contained in:
Jeff Law
1996-11-06 21:20:56 +00:00
parent 64ce06688d
commit bdd91d4f41
2 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,8 @@
Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com) Wed Nov 6 13:46:07 1996 Jeffrey A Law (law@cygnus.com)
* config/tc-mn10300.c (mn10300_insert_operand): Shift low part
of a MN10300_OPERAND_SPLIT operand by operand->shift.
* config/tc-mn10300.c (mn10300_insert_operand): Handle * config/tc-mn10300.c (mn10300_insert_operand): Handle
MN10300_OPERAND_SPLIT. MN10300_OPERAND_SPLIT.

View File

@ -894,7 +894,7 @@ mn10300_insert_operand (insnp, extensionp, operand, val, file, line, shift)
if ((operand->flags & MN10300_OPERAND_SPLIT) != 0) if ((operand->flags & MN10300_OPERAND_SPLIT) != 0)
{ {
*insnp |= (val >> 16) & 0xffff; *insnp |= (val >> 16) & 0xffff;
*extensionp |= val & 0xffff; *extensionp |= (val & 0xffff) << operand->shift;
} }
else if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0) else if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0)
{ {