OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.dg/] [other/] [opaque-1.C] - Blame information for rev 853

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do run { target powerpc-*-eabispe* } } */
2
 
3
#define __vector __attribute__((vector_size(8)))
4
typedef float __vector __ev64_fs__;
5
 
6
__ev64_fs__ f;
7
__ev64_opaque__ o;
8
 
9
int here = 0;
10
 
11
void bar (__ev64_opaque__ x)
12
{
13
  here = 0;
14
}
15
 
16
void bar (__ev64_fs__ x)
17
{
18
  here = 888;
19
}
20
 
21
int main ()
22
{
23
  f = o;
24
  o = f;
25
  bar (f);
26
  if (here != 888)
27
    return 1;
28
  return 0;
29
}

powered by: WebSVN 2.1.0

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