URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 301 |
Rev 338 |
// { dg-do compile }
|
// { dg-do compile }
|
// Ignore warning on some powerpc-linux configurations.
|
// Ignore warning on some powerpc-linux configurations.
|
// { dg-prune-output "non-standard ABI extension" }
|
// { dg-prune-output "non-standard ABI extension" }
|
#define vector __attribute__((vector_size(16) ))
|
#define vector __attribute__((vector_size(16) ))
|
vector unsigned int f(int a)
|
vector unsigned int f(int a)
|
{
|
{
|
vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x80000000,
|
vector unsigned int mask = a ? (vector unsigned int){ 0x80000000, 0x80000000,
|
0x80000000, 0x80000000 } : (vector unsigned int){0};
|
0x80000000, 0x80000000 } : (vector unsigned int){0};
|
return mask;
|
return mask;
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.