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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [avx-vblendps-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
#ifndef MASK
8
#define MASK 114
9
#endif
10
 
11
void static
12
avx_test (void)
13
{
14
  int i;
15
  union256 u, s1, s2;
16
  float e [8];
17
 
18
  s1.x = _mm256_set_ps (34545, 95567, 23443, 5675, 2323, 67, 2345, 45667);
19
  s2.x = _mm256_set_ps (674, 57897, 93459, 45624, 54674, 1237, 67436, 79608);
20
  u.x = _mm256_blend_ps (s1.x, s2.x, MASK);
21
 
22
  for (i = 0; i < 8; i++)
23
    e[i] = (MASK & (0x01 << i)) ? s2.a[i] : s1.a[i];
24
 
25
  if (check_union256 (u, e))
26
    abort ();
27
}

powered by: WebSVN 2.1.0

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