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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [sra-4.c] - Rev 826

Compare with Previous | Blame | View Log

/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-optimized -w" } */
/* Check that SRA replaces strucutres containing vectors. */
 
#define vector __attribute__((vector_size(16)))
 
struct vt
{
  vector int t;
};
 
 
vector int f(vector int t1, vector int t2)
{
  struct vt st1, st2, st3;
  st1.t = t1;
  st2 = st1;
  st2.t += t2;
  st3 = st2;
  return st3.t;
}
 
/* { dg-final { scan-tree-dump-times "st" 0 "optimized" } } */
/* { dg-final { cleanup-tree-dump "optimized" } } */
 

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.