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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [val-prof-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-options "-O2 -fdump-tree-optimized -fdump-tree-tree_profile" } */
2
int a[1000];
3
int b = 256;
4
int c = 257;
5
main ()
6
{
7
  int i;
8
  int n;
9
  for (i = 0; i < 1000; i++)
10
    {
11
      if (i % 17)
12
        n = c;
13
      else n = b;
14
      a[i] /= n;
15
    }
16
  return 0;
17
}
18
/* { dg-final-use { scan-tree-dump "Div.mod by constant n=257 transformation on insn" "tree_profile"} } */
19
/* { dg-final-use { scan-tree-dump "if \\(n != 257\\)" "optimized"} } */
20
/* { dg-final-use { scan-tree-dump-not "Invalid sum" "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.