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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [pr48633.C] - Blame information for rev 694

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

Line No. Rev Author Line
1 693 jeremybenn
/* { dg-do compile} */
2
/* { dg-options "-O2 -fira-region=all -fnon-call-exceptions" } */
3
extern long double getme (void);
4
extern void useme (long double);
5
struct Frame {
6
    long double tmp;
7
};
8
void bugme (int n, long double ld1, long double ld2, long double ld3,
9
            long double ld4, long double ld5)
10
{
11
  Frame f;
12
  int i;
13
  f.tmp = getme();
14
  try {
15
    for (i = 0; i < n; i++)
16
      {
17
        f.tmp += 1.0;
18
      }
19
  } catch (...) {
20
    f.tmp += 1.0;
21
  }
22
  ld1++;
23
  ld2++;
24
  ld3++;
25
  ld4++;
26
  ld5++;
27
  useme (f.tmp);
28
}

powered by: WebSVN 2.1.0

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