[Bug target/23909] Incorrect code generated for SSE2 based xor routine when compiled with -O2 -fomit-frame-pointer

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Sep 3 20:31:00 GMT 2006



------- Comment #5 from pinskia at gcc dot gnu dot org  2006-09-03 20:30 -------
      __asm__ __volatile__(
                           "add     %1,       %0\n"
                           "movaps   0(%0),   %%xmm0\n"
                           "movaps  16(%0),   %%xmm1\n"
                           : : "r" (bptr[0]), "r" (offset));

This asm is wrong, it does not tell the compiler that it modifies memory or
even xmmm? registers.

Really you should be using SSE instrincs functions.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23909



More information about the Gcc-bugs mailing list