This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/43998] inline assembler: can't set clobbering for input register
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 May 2010 13:09:24 -0000
- Subject: [Bug inline-asm/43998] inline assembler: can't set clobbering for input register
- References: <bug-43998-17114@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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