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 |
/* Test that we generate xorps when the result is used in FP math. */
|
/* Test that we generate xorps when the result is used in FP math. */
|
/* { dg-do compile } */
|
/* { dg-do compile } */
|
/* { dg-options "-O -msse2 -mno-sse3" } */
|
/* { dg-options "-O -msse2 -mno-sse3" } */
|
/* { dg-require-effective-target sse2 } */
|
/* { dg-require-effective-target sse2 } */
|
/* { dg-final { scan-assembler "xorps\[ \t\]" { xfail *-*-* } } } */
|
/* { dg-final { scan-assembler "xorps\[ \t\]" { xfail *-*-* } } } */
|
/* { dg-final { scan-assembler-not "pxor" { xfail *-*-* } } } */
|
/* { dg-final { scan-assembler-not "pxor" { xfail *-*-* } } } */
|
|
|
#define vector __attribute__ ((vector_size (16)))
|
#define vector __attribute__ ((vector_size (16)))
|
|
|
vector float i(vector float f, vector float h)
|
vector float i(vector float f, vector float h)
|
{
|
{
|
vector int g = { 0x80000000, 0, 0x80000000, 0 };
|
vector int g = { 0x80000000, 0, 0x80000000, 0 };
|
vector int f_int = (vector int) f;
|
vector int f_int = (vector int) f;
|
return ((vector float) (f_int ^ g)) + h;
|
return ((vector float) (f_int ^ g)) + h;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.