This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/27725] error in loop invariant motion tranformation
- From: "alessandro dot lonardo at roma1 dot infn dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2006 09:22:41 -0000
- Subject: [Bug tree-optimization/27725] error in loop invariant motion tranformation
- References: <bug-27725-8347@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from alessandro dot lonardo at roma1 dot infn dot it 2006-05-23 09:22 -------
(In reply to comment #2)
> Use:
> asm volatile("\tmovl (%1), %0\n"
> "\tincl %0\n"
> :"=r" (res) : "r" (pi): "memory");
>
> or
> asm volatile("\tmovl (%2), %0\n"
> "\tincl %0\n"
> :"=r" (res), "m"(*pi)" : "r" (pi));
>
Yes, I had tried the first, but is the asm really clobbering memory?
--
alessandro dot lonardo at roma1 dot infn dot it changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |alessandro dot lonardo at
| |roma1 dot infn dot it
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27725