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)
|
{
|
{
|
union256i_d u;
|
union256i_d u;
|
int e [8] __attribute__ ((aligned (32))) = {0};
|
int e [8] __attribute__ ((aligned (32))) = {0};
|
|
|
u.x = _mm256_set_epi32(23, 67, 53, 6, 4, 6, 85, 234);
|
u.x = _mm256_set_epi32(23, 67, 53, 6, 4, 6, 85, 234);
|
_mm256_store_si256 ((__m256i *)e, u.x);
|
_mm256_store_si256 ((__m256i *)e, u.x);
|
|
|
if (check_union256i_d (u, e))
|
if (check_union256i_d (u, e))
|
abort ();
|
abort ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.