OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr40254.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
#include <stdlib.h>
2
#include <stdarg.h>
3
#include "tree-vect.h"
4
 
5
struct s
6
{
7
  int *x;
8
  int x1;
9
  int x2;
10
  int x3;
11
  int *y;
12
};
13
 
14
struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
15
 
16
__attribute__ ((noinline)) void
17
foo (int i, int *in_x, int *in_y)
18
{
19
  arr[i].x = in_x;
20
  arr[i].y = in_y;
21
}
22
 
23
int
24
main (void)
25
{
26
  int a, b;
27
 
28
  check_vect ();
29
 
30
  foo (5, &a, &b);
31
 
32
  if (arr[5].x != &a || arr[5].y != &b)
33
    abort ();
34
 
35
  return 0;
36
}
37
 
38
/* { dg-final { cleanup-tree-dump "vect" } } */
39
 

powered by: WebSVN 2.1.0

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