2.95, x86: severe performance problems with short arithmetic
John Wehle
john@feith.com
Tue Aug 31 23:20:00 GMT 1999
>> 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).
>
>Does this include something like this?
>
> movzbw %dl, %ax
> addl %eax, %esi
>
Probably ... I don't have the relevant Intel document handy at
the moment. There are certain special cases (if I recall). More
information is available in the Intel Optimization Manual which
should be available from http://developer.intel.com .
-- John
-------------------------------------------------------------------------
| Feith Systems | Voice: 1-215-646-8000 | Email: john@feith.com |
| John Wehle | Fax: 1-215-540-5495 | |
-------------------------------------------------------------------------
More information about the Gcc
mailing list