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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [tree-ssa/] [vrp29.c] - Blame information for rev 298

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

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O2" } */
3
#include <limits.h>
4
 
5
extern void abort(void);
6
 
7
void decCompareOp (int result)
8
{
9
  if (result != (int) (INT_MAX + 1U))
10
    {
11
      result = -result;
12
      if (result != (int) (INT_MAX + 2U))
13
        abort ();
14
    }
15
}
16
 
17
int main()
18
{
19
  decCompareOp (INT_MAX);
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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