This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/32123] gcc.target/i386/sse2-vec-6.c fails for -mtune=k8
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 May 2007 08:35:00 -0000
- Subject: [Bug rtl-optimization/32123] gcc.target/i386/sse2-vec-6.c fails for -mtune=k8
- References: <bug-32123-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ubizjak at gmail dot com 2007-05-28 08:35 -------
Standalone testcase, compile with -O2 -msse2 -mtune=k8:
--cut here--
typedef short __v8hi __attribute__ ((__vector_size__ (16)));
typedef long long __m128i __attribute__ ((__vector_size__ (16)));
void sse2_test (void)
{
union
{
__m128i x;
} val1, res[8], tmp;
short ins[8] = { 8, 5, 9, 4, 2, 6, 1, 20 };
int i;
for (i = 0; i < 8; i++)
{
tmp.x = val1.x;
if (memcmp (&tmp, &res[i], sizeof (tmp)))
(__m128i) __builtin_ia32_vec_set_v8hi ((__v8hi) val1.x, ins[i], 0);
}
}
--cut here--
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32123