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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [torture/] [predcom-1.C] - Blame information for rev 774

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

Line No. Rev Author Line
1 693 jeremybenn
/* Test for ICE in predictive commoning with empty loop header block
2
   on arm-none-linux-gnueabi.  */
3
 
4
struct Foo
5
{
6
  double *ptr;
7
 
8
  Foo (double *ptr_)
9
    : ptr (ptr_)
10
  {
11
  }
12
 
13
  Foo PostInc ()
14
  {
15
    return Foo (ptr++);
16
  }
17
};
18
 
19
bool Baz (Foo first, double *last)
20
{
21
  Foo prev (first.ptr);
22
 
23
  first.ptr++;
24
 
25
  while (first.ptr != last)
26
    if (*first.PostInc ().ptr < *prev.PostInc ().ptr)
27
      return false;
28
}
29
 

powered by: WebSVN 2.1.0

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