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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc1/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [stringop-1.c] - Blame information for rev 338

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-options "-O2 -fdump-tree-optimized -fdump-tree-tree_profile" } */
2
int a[1000];
3
int b[1000];
4
int size=1;
5
int max=10000;
6
main()
7
{
8
  int i;
9
  for (i=0;i<max; i++)
10
    {
11
      __builtin_memcpy (a, b, size * sizeof (a[0]));
12
      asm("");
13
    }
14
   return 0;
15
}
16
/* { dg-final-use { scan-tree-dump "Single value 4 stringop" "tree_profile"} } */
17
/* Really this ought to simplify into assignment, but we are not there yet.  */
18
/* a[0] = b[0] is what we fold the resulting memcpy into.  */
19
/* { dg-final-use { scan-tree-dump "a.0. = " "optimized"} } */
20
/* { dg-final-use { scan-tree-dump "= b.0." "optimized"} } */
21
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
22
/* { dg-final-use { cleanup-tree-dump "tree_profile" } } */

powered by: WebSVN 2.1.0

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