Re: cltq.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I do not see this in my manual. So a google search turned up:
http://gcc.gnu.org/ml/gcc/2007-01/msg00613.html, which says it's the
same as the cdqe instruction.

Perhaps I can anticipate your next question. cdqe converts the
doubleword in eax to a quadword in rax with the same numerical value.


On Thu, 2007-03-15 at 01:17 +0100, ninjaboy wrote:
> hello,
> what does cltq do?
> 
> 0x0000000000400500 <my_m+4>:    movl   $0x0,0xfffffffffffffffc(%rbp)
> 0x0000000000400507 <my_m+11>:   jmp    0x40051b <my_m+31>
> 0x0000000000400509 <my_m+13>:   mov    0xfffffffffffffffc(%rbp),%eax
> 0x000000000040050c <my_m+16>:   mov    $0x4004e8,%edx
> 0x0000000000400511 <my_m+21>:   cltq
> 0x0000000000400513 <my_m+23>:   mov    %rdx,0xffffffffffffffa0(%rbp,%rax,8)
> 0x0000000000400518 <my_m+28>:   incl   0xfffffffffffffffc(%rbp)
> 0x000000000040051b <my_m+31>:   cmpl   $0xc,0xfffffffffffffffc(%rbp)
> 0x000000000040051f <my_m+35>:   jle    0x400509 <my_m+13>
> 
> what compares?
> Thanks in advance,


-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies]     [Security]     [Linux C Programming]     [Linux for Hams]     [DCCP]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux