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-5.c] - Blame information for rev 801

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=997;
4
main()
5
{
6
        int i;
7
        for (i = 0; i < 1000; i++)
8
                if (a[i])
9
                        a[i]/=b;
10
                else
11
                        a[i]/=b;
12
        return 0;
13
}
14
/* { dg-final-use { scan-ipa-dump "Div.mod by constant b.*=997 transformation on insn" "profile" } } */
15
/* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
16
/* { dg-final-use { cleanup-tree-dump "optimized" } } */
17
/* { 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.