Commit 4c467d41 by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_adjust_insn_length): Fix handling of calls in mips16 code.

	* config/mips/mips.c (mips_adjust_insn_length): Fix handling of
	calls in mips16 code.

From-SVN: r84772
parent c5a41953
2004-07-15 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_adjust_insn_length): Fix handling of
calls in mips16 code.
2004-07-15 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
the destination of the li as well as for the neg.
......
......@@ -8969,9 +8969,7 @@ mips_adjust_insn_length (rtx insn, int length)
/* A unconditional jump has an unfilled delay slot if it is not part
of a sequence. A conditional jump normally has a delay slot, but
does not on MIPS16. */
if (simplejump_p (insn)
|| (!TARGET_MIPS16 && (GET_CODE (insn) == JUMP_INSN
|| GET_CODE (insn) == CALL_INSN)))
if (CALL_P (insn) || (TARGET_MIPS16 ? simplejump_p (insn) : JUMP_P (insn)))
length += 4;
/* See how many nops might be needed to avoid hardware hazards. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment