aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx2-vmovntdqa-2.c
blob: f1eda70bd739ba75fa3ad0ebdf622d09b0be4ced (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/* { dg-do run } */
/* { dg-require-effective-target avx2 } */
/* { dg-options "-O2 -mavx2" } */

#include "avx2-check.h"

void static
avx2_test (void)
{
  union256i_q s1, res;
  int i, j;
  int fail = 0;

  for (i = 0; i < 10; i++)
    {
      for (j = 0; j < 4; j++)
	s1.a[j] = j * i;

      res.x = _mm256_stream_load_si256 (&s1.x);

      fail += check_union256i_q (res, s1.a);
    }

  if (fail != 0)
    abort ();
}