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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [avx2-vpcmpgtd-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
static void
8
avx2_test (void)
9
{
10
  union256i_d u, s1, s2;
11
  int e[8];
12
  int i;
13
 
14
  s1.x = _mm256_set_epi32 (1, 2, 3, 4, 10, 20, 30, 90000);
15
 
16
  s2.x = _mm256_set_epi32 (88, 44, 3, 22, 11, 98, 76, -100);
17
 
18
  u.x = _mm256_cmpgt_epi32 (s1.x, s2.x);
19
 
20
  for (i = 0; i < 8; i++)
21
    e[i] = (s1.a[i] > s2.a[i]) ? -1 : 0;
22
 
23
  if (check_union256i_d (u, e))
24
    abort ();
25
}

powered by: WebSVN 2.1.0

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