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 tree-optimization/27725] error in loop invariant motion tranformation



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


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