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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr40254.c] - Rev 801

Go to most recent revision | 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" } } */
 
 

Go to most recent revision | 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.