URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 154 |
Rev 816 |
/* { dg-do compile { target powerpc*-*-* } } */
|
/* { dg-do compile { target powerpc*-*-* } } */
|
/* { dg-require-effective-target powerpc_altivec_ok } */
|
/* { dg-require-effective-target powerpc_altivec_ok } */
|
/* { dg-options "-maltivec -fpreprocessed" } */
|
/* { dg-options "-maltivec -fpreprocessed" } */
|
|
|
/* Program to test AltiVec with -fpreprocessed. */
|
/* Program to test AltiVec with -fpreprocessed. */
|
int foo(__attribute__((altivec(vector__))) float x,
|
int foo(__attribute__((altivec(vector__))) float x,
|
__attribute__((altivec(vector__))) float y)
|
__attribute__((altivec(vector__))) float y)
|
{
|
{
|
if (__builtin_vec_vcmpeq_p (2, (x), (y)))
|
if (__builtin_vec_vcmpeq_p (2, (x), (y)))
|
return 3245;
|
return 3245;
|
else
|
else
|
return 12;
|
return 12;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.