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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr40254.c] - Rev 338

Compare with Previous | Blame | View Log

#include <stdlib.h>
#include <stdarg.h>
#include "tree-vect.h"
 
struct s
{
  int *x;
  int x1;
  int x2;
  int x3;
  int *y;
};
 
struct s arr[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
 
__attribute__ ((noinline)) void
foo (int i, int *in_x, int *in_y)
{
  arr[i].x = in_x;
  arr[i].y = in_y;
}
 
int
main (void)
{
  int a, b;
 
  check_vect ();
 
  foo (5, &a, &b);
 
  if (arr[5].x != &a || arr[5].y != &b)
    abort ();
 
  return 0;
}
 
/* { dg-final { cleanup-tree-dump "vect" } } */
 
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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