This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/80286] [5/6/7 Regression] AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits int
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 03 Apr 2017 08:18:57 +0000
- Subject: [Bug target/80286] [5/6/7 Regression] AVX2 _mm_cvtsi128_si32 doesn't return a proper 32bits int
- Auto-submitted: auto-generated
- References: <bug-80286-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80286
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Another testcase:
typedef int V __attribute__((vector_size (4 * sizeof (int))));
__attribute__((noinline, noclone)) V
foo (V x, V y)
{
return x << y[0];
}
int
main ()
{
V x = { 1, 2, 3, 4 };
V y = { 5, 6, 7, 8 };
V z = foo (x, y);
V e = { 1 << 5, 2 << 5, 3 << 5, 4 << 5 };
if (__builtin_memcmp (&z, &e, sizeof (V)))
__builtin_abort ();
return 0;
}