* config/tc-mn10300.c (mn10300_insert_operand): Handle
authorJeff Law <law@redhat.com>
Wed, 6 Nov 1996 20:48:36 +0000 (20:48 +0000)
committerJeff Law <law@redhat.com>
Wed, 6 Nov 1996 20:48:36 +0000 (20:48 +0000)
        MN10300_OPERAND_SPLIT.
For handling of 32bit operands.

gas/ChangeLog
gas/config/tc-mn10300.c

index 3ccf24555093ed1a72885b47e06ff12f9b618226..14e4a534615252c35f162fc997dc70f95a94176c 100644 (file)
@@ -1,3 +1,8 @@
+Wed Nov  6 13:46:07 1996  Jeffrey A Law  (law@cygnus.com)
+
+       * config/tc-mn10300.c (mn10300_insert_operand): Handle
+       MN10300_OPERAND_SPLIT.
+
 Tue Nov  5 13:30:40 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-mn10300.c (md_assemble): Insert operands into
index b120fa5ab5ae6103ea3ea202ffd9691a081a7476..215809ac42711c19fb8686d4d78b4997709c771c 100644 (file)
@@ -891,7 +891,12 @@ mn10300_insert_operand (insnp, extensionp, operand, val, file, line, shift)
         }
     }
 
-  if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0)
+  if ((operand->flags & MN10300_OPERAND_SPLIT) != 0)
+    {
+      *insnp |= (val >> 16) & 0xffff;
+      *extensionp |= val & 0xffff;
+    }
+  else if ((operand->flags & MN10300_OPERAND_EXTENDED) == 0)
     {
       *insnp |= (((long) val & ((1 << operand->bits) - 1))
                 << (operand->shift + shift));