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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [sra-4.c] - Blame information for rev 689

Details | Compare with Previous | View Log

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