This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 2.95, x86: severe performance problems with short arithmetic
- To: John Wehle <john@feith.com>
- Subject: Re: 2.95, x86: severe performance problems with short arithmetic
- From: Richard Henderson <rth@cygnus.com>
- Date: Wed, 11 Aug 1999 00:01:41 -0700
- Cc: zack@bitmover.com, gcc@gcc.gnu.org
- References: <199908101943.PAA01276@jwlab.FEITH.COM>
On Tue, Aug 10, 1999 at 03:43:53PM -0400, John Wehle wrote:
> 1) A 16 bit write to a register immediately followed by a 32 bit read
> of the register. This will cause a stall. Converting the 16 bit
> write to a 32 bit write avoids the stall, however this may cause a
> stall with an earlier instruction (if I recall correctly).
No, writes don't stall -- only reads.
> 2) A 16 bit write to a register followed by several other instructions
> which don't reference the register followed by a 32 bit read of the
> register. This will not stall.
Incorrect. The 16-bit write instruction has to _retire_ before
the 32-bit read can _issue_. With reorder buffers the size that
they are, this is 20 odd cycles, worst case.
r~