Assembly mnemonic
I was looking at the assembly output from a small C program just to see how the compiler dealt with a certain procedure and can't figure out what the mnemonic "cltd" is. Does anyone know what this is? There is NO arguments for it, it's just by itself on a line.
Cheers,
Jeff Souza
Hello,
google.com found this:
The Intel-syntax conversion instructions
* cbw -- sign-extend byte in %al to word in %ax,
* cwde -- sign-extend word in %ax to long in %eax,
* cwd -- sign-extend word in %ax to long in %dx:%ax,
* cdq -- sign-extend dword in %eax to quad in %edx:%eax,
* cdqe -- sign-extend dword in %eax to quad in %rax (x86-64 only),
* cdo -- sign-extend quad in %rax to octuple in %rdx:%rax (x86-64 only)
are called cbtw, cwtl, cwtd, cltd, cltq, and cqto in AT&T naming. as as
^^^^^
accepts either naming for these instructions.
http://sources.redhat.com/binutils/docs-2.12/as.info/i386-Mnemonics.html
regards
Rudolf
Quoted 19 lines · J.S.Souza
Date: Tue, 28 May 2002 09:25:30 -0700
From: J.S.Souza <[email protected]>
To: [email protected]
Subject: Assembly mnemonicI was looking at the assembly output from a small C program just to see how the compiler dealt with a certain procedure and can't figure out what the mnemonic "cltd" is. Does anyone know what this is? There is NO arguments for it, it's just by itself on a line.
Cheers,
Jeff Souza
-
To unsubscribe from this list: send the line "unsubscribe linux-assembly" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html