[Bug inline-asm/43998] inline assembler: can't set clobbering for input register
hjl dot tools at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 6 13:09:00 GMT 2010
------- Comment #6 from hjl dot tools at gmail dot com 2010-05-06 13:09 -------
(In reply to comment #5)
> Well, how to say that to compiler:
>
> This instruction receives input in register eax, but after executing it, eax
> value will be corrupted. I don't need this new value, but compiler should not
> think that eax is preserved.
>
Just make eax both input and output.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43998
More information about the Gcc-bugs
mailing list