This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/34177] Inline assembly uses wrong register
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2007 18:06:18 -0000
- Subject: [Bug inline-asm/34177] Inline assembly uses wrong register
- References: <bug-34177-15405@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from pinskia at gcc dot gnu dot org 2007-11-21 18:06 -------
r25 is not marked as clobbered so what do you expect?
Try:
asm volatile("mov r25, %0" : "=r" (RunTsk)::"r25");
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Component|c |inline-asm
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34177