[Bug inline-asm/21249] incorrect code generation for rdtsc on x86_64
tfautre at pandora dot be
gcc-bugzilla@gcc.gnu.org
Wed Apr 27 13:31:00 GMT 2005
------- Additional Comments From tfautre at pandora dot be 2005-04-27 13:30 -------
Thanks for the code, it's working.
The inline rdtsc code was from an IBM article; and after reading the GCC doc on
=A, I must admit I was expecting it to work on x86_64 too.
"A Specifies the `a' or `d' registers. This is primarily useful for 64-bit
integer values (when in 32-bit mode) intended to be returned with the `d'
register holding the most significant bits and the `a' register holding the
least significant bits."
If =A is for using edx:eax in 32 bits mode, what is it doing exactly in 64 bits
then? rdx:rax?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21249
More information about the Gcc-bugs
mailing list