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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [avx2-vpaddq-2.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-options "-mavx2 -O2" } */
3
/* { dg-require-effective-target avx2 } */
4
 
5
#include "avx2-check.h"
6
 
7
void static
8
avx2_test (void)
9
{
10
  union256i_q u, s1, s2;
11
  long long e[4];
12
  unsigned i;
13
 
14
  s1.x = _mm256_set_epi64x (100, 74, 50000, 4);
15
  s2.x = _mm256_set_epi64x (88, 44, 33, 220);
16
 
17
  u.x = _mm256_add_epi64 (s1.x, s2.x);
18
 
19
  for (i = 0; i < 4; i++)
20
    e[i] = s1.a[i] + s2.a[i];
21
 
22
  if (check_union256i_q (u, e))
23
    abort ();
24
}

powered by: WebSVN 2.1.0

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