Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Simple quad-opteron test

Author: Robert Hyatt

Date: 13:17:25 12/04/03

Go up one level in this thread


On December 04, 2003 at 13:48:31, Gerd Isenberg wrote:

>>Can you already inspect the generated code? Does int (32-bit)-functions use
>>"ret eax" or the one byte prefixed "ret rax"?
>
>The is only ret instruction.
>The question was intended how the caller use the register result of an 32-bit
>int function, eax or already sign extended rax?

I am using it as a 32 bit value, so simple test cases use %eax.  Of course,
there
are 8 more registers (%r8 and up) that can be used effectively.  I have not
looked
to see if they can be addressed as 32 bits, but I assume so...  maybe %e8?  Who
knows...


>
>>I guess, after the bsr/bsf,
>>shorter 32-bit instructions are fine, specially if unsigned (due to the signed
>>int index penalty).



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.