summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/avx-vmovntdq-256-1.c
blob: 5caf34e6da0401a77374465ec74b8e31c535af19 (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
27
/* { dg-do run } */
/* { dg-require-effective-target avx } */
/* { dg-options "-O2 -mavx" } */

#include "avx-check.h"

static void
__attribute__((noinline))
test (__m256i *p, __m256i s)
{
  return _mm256_stream_si256 (p, s); 
}

static void
avx_test (void)
{
  union256i_d u;
  int e[8] __attribute__ ((aligned(32))) = {1,1,1,1,1,1,1,1};

  u.x = _mm256_set_epi32 (2434, 6845, 3789, 4683,
			  4623, 2236, 8295, 1084);

  test ((__m256i *)e, u.x);
  
  if (check_union256i_d (u, e))
    abort ();
}