This is the mail archive of the
mailing list for the GCC project.
Re: RFA: Mark DIVS and DIVU SH2A instructions as unusable in delayslots
- From: Joern RENNECKE <joern dot rennecke at st dot com>
- To: Nick Clifton <nickc at redhat dot com>
- Cc: aoliva at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Tue, 11 Jan 2005 20:44:28 +0000
- Subject: Re: RFA: Mark DIVS and DIVU SH2A instructions as unusable in delayslots
- References: <email@example.com>
Nick Clifton wrote:
Hi Joern, Hi Alex,Does that mean that exceptions thrown by a div[su] instruction in a
delay slot need
A customer of ours recently reported a problem with the SH2A port
uncovered by the PlumHall testsuite. Obviously I cannot reproduce
that test here, but I was able to find the problem and a simple
patch to fix it.
The problem is that the SH2A's "divs" and "divu" instructions should
not be placed into the delay slot of a branch/jump instruction
because they might cause an exception. This is caught by the
simulator which was how the problem was uncovered.
special handling by the exception handler[s], or that the processor
doesn't allow these
instructions in a delay slot at all?