URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 322 |
Rev 338 |
/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */
|
/* { dg-do compile { target { powerpc-*-linux*paired* && ilp32 } } } */
|
/* { dg-options "-mpaired -ffinite-math-only " } */
|
/* { dg-options "-mpaired -ffinite-math-only " } */
|
|
|
/* Test PowerPC PAIRED extensions. */
|
/* Test PowerPC PAIRED extensions. */
|
|
|
#include <paired.h>
|
#include <paired.h>
|
|
|
static float out[2] __attribute__ ((aligned (8)));
|
static float out[2] __attribute__ ((aligned (8)));
|
void
|
void
|
test_api (float x)
|
test_api (float x)
|
{
|
{
|
vector float c = {x, x};
|
vector float c = {x, x};
|
vector float b = {60.0, 88.0};
|
vector float b = {60.0, 88.0};
|
vector float a;
|
vector float a;
|
|
|
a = paired_sub (b, c);
|
a = paired_sub (b, c);
|
paired_stx (a, 0, out);
|
paired_stx (a, 0, out);
|
}
|
}
|
|
|
|
|
int main ()
|
int main ()
|
{
|
{
|
test_api (6);
|
test_api (6);
|
return (0);
|
return (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.