URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 338 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-require-effective-target avx } */
|
/* { dg-require-effective-target avx } */
|
/* { dg-options "-O2 -mavx" } */
|
/* { dg-options "-O2 -mavx" } */
|
|
|
#include "avx-check.h"
|
#include "avx-check.h"
|
|
|
void static
|
void static
|
avx_test (void)
|
avx_test (void)
|
{
|
{
|
int i;
|
int i;
|
union256 u;
|
union256 u;
|
float e [8];
|
float e [8];
|
float source[1] = {1234.234f};
|
float source[1] = {1234.234f};
|
|
|
u.x = _mm256_set1_ps (source[0]);
|
u.x = _mm256_set1_ps (source[0]);
|
|
|
for (i = 0; i < 8; i++)
|
for (i = 0; i < 8; i++)
|
e[i] = source[0];
|
e[i] = source[0];
|
|
|
if (check_union256 (u, e))
|
if (check_union256 (u, e))
|
abort ();
|
abort ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.