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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr45652.c] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run { target powerpc*-*-* ia64-*-* x86_64-*-* } } */
2
/* { dg-options "-O2 -fselective-scheduling2" } */
3
 
4
struct S {
5
  double i[2];
6
};
7
 
8
void __attribute__ ((noinline)) checkcd (struct S x)
9
{
10
  if (x.i[0] != 7.0 || x.i[1] != 8.0)
11
    __builtin_abort ();
12
}
13
 
14
void __attribute__ ((noinline)) testvacd (int n, ...)
15
{
16
  int i;
17
  __builtin_va_list ap;
18
  __builtin_va_start (ap, n);
19
  for (i = 0; i < n; i++)
20
    {
21
      struct S t = __builtin_va_arg (ap, struct S);
22
      checkcd (t);
23
    }
24
  __builtin_va_end (ap);
25
}
26
 
27
void
28
testitcd (void)
29
{
30
  struct S x = { { 7.0, 8.0 } };
31
  testvacd (2, x, x);
32
}
33
 
34
int
35
main ()
36
{
37
  testitcd ();
38
  return 0;
39
}

powered by: WebSVN 2.1.0

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