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 target/24536] [4.1 Regression] Register allocation to mmx asms broken



------- Comment #4 from rguenth at gcc dot gnu dot org  2005-10-26 11:01 -------
Reduced testcase that works with 4.0 and fails with 4.1

typedef union {
    long long q;
    unsigned long long uq;
} __attribute__ ((aligned (8))) mmx_t;
static mmx_t mmx_0x8080s = (mmx_t) 0x8080808080808080LL;
void dv_mb411_right_YUY2_mmx(void)
{
    unsigned char *pyuv;
    int row;
    for (row = 0; row < 8; row++)
    {
        __asm__ __volatile__ ("paddb" " %0, %%" "mm2" : : "X" (mmx_0x8080s));
        __asm__ __volatile__ ("movq" " %%" "mm2" ", %0" : "=X" (pyuv [8]) : );
    }
}


-- 


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


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