This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug inline-asm/43998] inline assembler: can't set clobbering for input register



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]