Debian Codegraph @

gcc/testsuite/gcc.target/i386/avx-storeu2-m128i-2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mavx" } */
3 /* { dg-require-effective-target avx } */
4
5 #include "avx-check.h"
6
7 static void
8 avx_test (void)
9 {
10 int e[12] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
11 int f[12] = { -1, -18, 12, 0, 9, -1, 1, -9, 13, -24, -1, -1 };
12 int i;
13 __m256i x = _mm256_set_epi32 (1, -9, 13, -24, -18, 12, 0, 9);
14 _mm256_storeu2_m128i ((__m128i_u *) (e + 1), (__m128i_u *) (e + 6), x);
15 for (i = 0; i < 12; i++)
16 if (e[i] != f[i])
17 abort ();
18 }