OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [avx-vorpd-256-1.c] - Blame information for rev 848

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do run } */
2
/* { dg-require-effective-target avx } */
3
/* { dg-options "-O2 -mavx" } */
4
 
5
#include "avx-check.h"
6
 
7
void static
8
avx_test (void)
9
{
10
  int i;
11
  union256d u, s1, s2;
12
 
13
  union
14
  {
15
    double d[4];
16
    long long ll[4];
17
  }source1, source2, e;
18
 
19
  s1.x = _mm256_set_pd (34545, 95567, 23443, 5675);
20
  s2.x = _mm256_set_pd (674, 57897, 93459, 45624);
21
 
22
  _mm256_storeu_pd (source1.d, s1.x);
23
  _mm256_storeu_pd (source2.d, s2.x);
24
 
25
  u.x = _mm256_or_pd (s1.x, s2.x);
26
 
27
  for (i = 0; i < 4; i++)
28
    e.ll[i] = source1.ll[i] | source2.ll[i];
29
 
30
  if (check_union256d (u, e.d))
31
    abort ();
32
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.