* config/tc-mn10300.c (md_assemble): Format D5 instructions

are 7 bytes long.  Write out instructions in big-endian format.

Matsushita.
This commit is contained in:
Jeff Law 1996-10-10 18:07:37 +00:00
parent 3e41eeb4d3
commit 1c3ae169f7
2 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,11 @@
Thu Oct 10 12:05:45 1996 Jeffrey A Law (law@cygnus.com)
* config/tc-mn10300.c (md_assemble): Format D5 instructions
are 7 bytes long. Write out instructions in big-endian format.
Tue Oct 8 14:56:15 1996 Jeffrey A Law (law@cygnus.com)
* config/tc-mn10300.h (md_assemble): Tweak further so
* config/tc-mn10300.c (md_assemble): Tweak further so
that all instructions are parsed correctly.
Tue Oct 8 13:02:21 1996 Ian Lance Taylor <ian@cygnus.com>

View File

@ -677,7 +677,7 @@ keep_going:
if (opcode->format == 4)
size = 5;
if (opcode->format == 5)
if (opcode->format == 5 || opcode->format == 10)
size = 7;
if (opcode->format == 8)
@ -686,16 +686,12 @@ keep_going:
if (opcode->format == 9)
size = 6;
if (opcode->format == 10)
size = 8;
/* Write out the instruction. */
f = frag_more (size);
number_to_chars_bigendian (f, insn, size > 4 ? 4 : size);
if (size > 4)
size = 4;
md_number_to_chars (f, insn, size);
number_to_chars_bigendian (f + 4, 0, size - 4);
}