OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [pr23294.c] - Blame information for rev 437

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-optimized" } */
3
 
4
int f1(int a)
5
{
6
  return a*6-a;
7
}
8
 
9
int f2(int a)
10
{
11
  return a*4+a;
12
}
13
 
14
int f3(int a)
15
{
16
  return 2*a + 3*a;
17
}
18
 
19
int f4(int a, int b)
20
{
21
  return 2*a + 6*b;
22
}
23
 
24
int f5(int a, int b)
25
{
26
  return 2*a - 6*b;
27
}
28
 
29
int f6(int a, int b)
30
{
31
  return 6*a - 2*b;
32
}
33
 
34
/* { dg-final { scan-tree-dump-times "a_..D. \\\* 5" 3 "optimized" } } */
35
/* { dg-final { scan-tree-dump-times " \\\* 2" 3 "optimized" } } */
36
/* { dg-final { scan-tree-dump-not "\\\* 6" "optimized" } } */
37
/* { 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.