This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] MIPS, use trap instead of break to detect divide by zero


Richard Sandiford wrote:
> David Daney <ddaney@avtrex.com> writes:
> 
>>+#define TARGET_HAS_TRAP         (mips_isa > 1)
> 
> 
> There's already a macro for this: ISA_HAS_COND_TRAP.  You should also

Good point.


> adjust the length attribute of the division instruction.
> 

Currently only integer division operations call mips_output_division()
and are the only ones effected.  As far as I can see, there are no size
attributes defined for integer division on mips.md.

David Daney


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]