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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [sra-4.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O1 -fdump-tree-optimized -w" } */
3
/* Check that SRA replaces strucutres containing vectors. */
4
 
5
#define vector __attribute__((vector_size(16)))
6
 
7
struct vt
8
{
9
  vector int t;
10
};
11
 
12
 
13
vector int f(vector int t1, vector int t2)
14
{
15
  struct vt st1, st2, st3;
16
  st1.t = t1;
17
  st2 = st1;
18
  st2.t += t2;
19
  st3 = st2;
20
  return st3.t;
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "st" 0 "optimized" } } */
24
/* { dg-final { cleanup-tree-dump "optimized" } } */

powered by: WebSVN 2.1.0

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