URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 318 |
Rev 384 |
/* { dg-do run } */
|
/* { dg-do run } */
|
/* { dg-options "-O2 -msse2" } */
|
/* { dg-options "-O2 -msse2" } */
|
/* { dg-require-effective-target sse2 } */
|
/* { dg-require-effective-target sse2 } */
|
|
|
#ifndef CHECK_H
|
#ifndef CHECK_H
|
#define CHECK_H "sse2-check.h"
|
#define CHECK_H "sse2-check.h"
|
#endif
|
#endif
|
|
|
#ifndef TEST
|
#ifndef TEST
|
#define TEST sse2_test
|
#define TEST sse2_test
|
#endif
|
#endif
|
|
|
#include CHECK_H
|
#include CHECK_H
|
|
|
#include <emmintrin.h>
|
#include <emmintrin.h>
|
|
|
static void
|
static void
|
__attribute__((noinline, unused))
|
__attribute__((noinline, unused))
|
test (double *e, __m128d a)
|
test (double *e, __m128d a)
|
{
|
{
|
return _mm_storel_pd (e, a);
|
return _mm_storel_pd (e, a);
|
}
|
}
|
|
|
static void
|
static void
|
TEST (void)
|
TEST (void)
|
{
|
{
|
union128d u;
|
union128d u;
|
double e[2];
|
double e[2];
|
|
|
u.x = _mm_set_pd (41124.234,2344.2354);
|
u.x = _mm_set_pd (41124.234,2344.2354);
|
|
|
test (e, u.x);
|
test (e, u.x);
|
|
|
e[1] = u.a[1];
|
e[1] = u.a[1];
|
|
|
if (check_union128d (u, e))
|
if (check_union128d (u, e))
|
abort ();
|
abort ();
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.