mips16 div_trap patch
Jeffrey A Law
Sat Jan 16 21:43:00 GMT 1999
In message < m101BAt-000sBeC@cetus.cygnus.com >you write:
> OK to commit?
> The mips16 bne insn is a macro that uses reg 24 as an intermediary.
> This patch splits the div_trap insn into two insns, one for normal
> mips, which does what it always did, and one for mips16, which
> notes the clobber of reg 24.
> * config/mips/mips.md (div_trap): Split div_trap_mips16
> from div_trap.
Seems reasonable to me with a couple minor edits.
An old bug -- can you change the length of div_trap_normal to "3", since it
can generate 3 insns in some cases.
If the mips16 is using an a macro, then odds are it has a length > 3;
can you find out what length it has and update the div_trap_mips16
Consider the approved with those changes.
More information about the Gcc-patches