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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp12.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do link } */
2
/* { dg-options -O2 } */
3
 
4
foo (int i)
5
{
6
  int x;
7
 
8
  x = i;
9
  if (i < -10)
10
    {
11
      x = __builtin_abs (i);
12
      /* VRP was incorrectly folding this to if (1).  */
13
      if (x < 0)
14
        link_error ();
15
    }
16
 
17
  return x;
18
}
19
 
20
main()
21
{
22
  foo (-30);
23
}

powered by: WebSVN 2.1.0

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