From: Doug Evans Date: Tue, 7 Apr 1998 19:26:40 +0000 (+0000) Subject: * config/tc-dvp.c (md_convert_frag): Fix thinko. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bfb27620b9d97b2acf8ed589997c5b16c4ba0802;p=binutils-gdb.git * config/tc-dvp.c (md_convert_frag): Fix thinko. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index d7664d9cdfb..df04cdb9e07 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,4 +1,8 @@ start-sanitize-sky +Tue Apr 7 12:21:39 1998 Doug Evans + + * config/tc-dvp.c (md_convert_frag): Fix thinko. + Mon Apr 6 17:08:47 1998 Doug Evans * config/tc-dvp.c (assemble_vif): Watch for macro insns. diff --git a/gas/config/tc-dvp.c b/gas/config/tc-dvp.c index f605b06e177..6f7af591022 100644 --- a/gas/config/tc-dvp.c +++ b/gas/config/tc-dvp.c @@ -1503,8 +1503,10 @@ md_convert_frag (abfd, sec, fragP) (so it abuts the following data). */ DVP_INSN insn = bfd_getl32 (fragP->fr_opcode); md_number_to_chars (fragP->fr_opcode, VIFNOP, 4); + if (growth > 4) + md_number_to_chars (fragP->fr_opcode + 4, VIFNOP, 4); if (growth > 8) - md_number_to_chars (fragP->fr_opcode, VIFNOP, 8); + md_number_to_chars (fragP->fr_opcode + 8, VIFNOP, 4); md_number_to_chars (fragP->fr_literal + fragP->fr_fix - 4, insn, 4); /* Adjust fr_opcode so md_apply_fix3 works with the right bytes. */