URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [opaque-1.C] - Rev 693
Compare with Previous | Blame | View Log
/* { dg-do run } */
/* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
#define __vector __attribute__((vector_size(8)))
typedef float __vector __ev64_fs__;
__ev64_fs__ f;
__ev64_opaque__ o;
int here = 0;
void bar (__ev64_opaque__ x)
{
here = 0;
}
void bar (__ev64_fs__ x)
{
here = 888;
}
int main ()
{
f = o;
o = f;
bar (f);
if (here != 888)
return 1;
return 0;
}