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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [tree-prof/] [val-prof-1.c] - Blame information for rev 774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-options "-O2 -fdump-tree-optimized -fdump-ipa-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-ipa-dump "Div.mod by constant n_\[0-9\]*=257 transformation on insn" "profile"} } */
19
/* { dg-final-use { scan-tree-dump "if \\(n_\[0-9\]* != 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-ipa-dump "profile" } } */

powered by: WebSVN 2.1.0

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