* cltq.
@ 2007-03-15 0:17 ninjaboy
2007-03-15 1:01 ` cltq Robert Plantz
0 siblings, 1 reply; 2+ messages in thread
From: ninjaboy @ 2007-03-15 0:17 UTC (permalink / raw)
To: linux-assembly
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,
--
noone is alone.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: cltq.
2007-03-15 0:17 cltq ninjaboy
@ 2007-03-15 1:01 ` Robert Plantz
0 siblings, 0 replies; 2+ messages in thread
From: Robert Plantz @ 2007-03-15 1:01 UTC (permalink / raw)
To: ninjaboy; +Cc: linux-assembly
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,
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-15 1:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-15 0:17 cltq ninjaboy
2007-03-15 1:01 ` cltq Robert Plantz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).