aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/avx-vmovntps-256-1.c
blob: 9f79403f4f9f963572371077fde239332a8f4876 (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 avx } */
/* { dg-options "-O2 -mavx" } */

#include "avx-check.h"

static void 
__attribute__((noinline))
test (float *p, __m256 s)
{
  return _mm256_stream_ps (p, s); 
}

static void
avx_test (void)
{
  union256 u;
  float e[8] __attribute__ ((aligned(32)));

  u.x = _mm256_set_ps (24.43, 68.346, -43.35, 546.46,
		       46.9, -2.78, 82.9, -0.4);
  test (e, u.x); 
  
  if (check_union256 (u, e))
    abort ();
}