This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/24536] [4.1 Regression] Register allocation to mmx asms broken
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Oct 2005 11:01:50 -0000
- Subject: [Bug target/24536] [4.1 Regression] Register allocation to mmx asms broken
- References: <bug-24536-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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