OpenCores
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] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-mcpu=8540 -mspe -mabi=spe -mfloat-gprs=single" } */
3
/* { dg-skip-if "not an SPE target" { ! powerpc_spe_nocache } { "*" } { "" } } */
4
 
5
#define __vector __attribute__((vector_size(8)))
6
typedef float __vector __ev64_fs__;
7
 
8
__ev64_fs__ f;
9
__ev64_opaque__ o;
10
 
11
int here = 0;
12
 
13
void bar (__ev64_opaque__ x)
14
{
15
  here = 0;
16
}
17
 
18
void bar (__ev64_fs__ x)
19
{
20
  here = 888;
21
}
22
 
23
int main ()
24
{
25
  f = o;
26
  o = f;
27
  bar (f);
28
  if (here != 888)
29
    return 1;
30
  return 0;
31
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.