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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-complex-5.c] - Rev 384

Compare with Previous | Blame | View Log

/* { dg-require-effective-target vect_int } */
 
#include <stdio.h>
#include <stdarg.h>
#include "tree-vect.h"
 
#define N 16
 
struct foostr {
  _Complex short f1;
  _Complex short f2;
};
 
_Complex short a1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
_Complex short a2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
_Complex short b1[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
_Complex short b2[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
struct foostr c[64] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
 
__attribute__ ((noinline)) void
foo (void)
{
  int i;
 
  for (i = 0; i < N; i++)
    {
      c[i].f1 = a1[i] + b1[i];
      c[i].f2 = a2[i] + b2[i];
    }
 
}
 
int
main (void)
{ 
  int i;
  check_vect ();
 
  foo ();
 
  return 0;
}
 
/* { dg-final { scan-tree-dump-times "vectorizing stmts using SLP" 0 "vect" } } */
/* { 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.