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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr35771.h] - Blame information for rev 689

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
typedef TYPE __attribute__((aligned(1))) unaligned;
2
 
3
extern void abort (void);
4
 
5
 
6
TYPE  __attribute__((noinline))
7
foo (TYPE a1, TYPE a2, TYPE a3, TYPE a4,
8
     TYPE a5, TYPE a6, TYPE a7, TYPE a8,
9
     int b1, int b2, int b3, int b4, int b5, int b6, int b7, unaligned y)
10
{
11
  return y;
12
}
13
 
14
void
15
do_test (void)
16
{
17
  unaligned x;
18
  TYPE y = { 0 };
19
  x = y;
20
  y = foo (y, y, y, y, y, y, y, y, 1, 2, 3, 4, 5, 6, -1, x);
21
  if (__builtin_memcmp (&y, &x, sizeof (y)) != 0)
22
    abort ();
23
}
24
 
25
int
26
main (void)
27
{
28
  do_test ();
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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