Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Simple optimization question

Author: Robert Hyatt

Date: 19:47:50 01/09/04

Go up one level in this thread


On January 09, 2004 at 13:32:07, Anthony Cozzie wrote:

>>XOR eax,eax
>>COMP x
>>CMOVE eax,20
>>ADD y, eax
>
>unfortunately, there is no CMOV with constants in X86.  So to get the CMOV to
>work and correctly avoid the branch, you need 2 additional registers.  Which, of
>course, you are not likely to have.  Which is why we should all go out and buy
>Alphas . . . .
>
>anthony


Actually, _this_ case works quite well.  Register renaming solves this
handily...




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.