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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [profile-generate-1.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
/* Bug 16325.  */
2
/* { dg-require-profiling "-fprofile-generate" } */
3
/* { dg-options "-O -fprofile-generate" } */
4
 
5
extern void abort (void);
6
 
7
int *p1;
8
int *p2;
9
int *p3;
10
 
11
int ga = 100;
12
 
13
int
14
sub (int i, int j)
15
{
16
  int k;
17
  int l;
18
  int m;
19
  int n;
20
  p1 = &k;
21
  p2 = &l;
22
  p3 = &m;
23
  k = 20;
24
  l = 30;
25
  m = 40;
26
  n = i / j;
27
  return n + ga;
28
}
29
 
30
int
31
main(void)
32
{
33
  if (sub (99, 33) != 103)
34
    abort ();
35
  return 0;
36
}
37
 
38
/* { dg-final { cleanup-coverage-files } } */

powered by: WebSVN 2.1.0

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