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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [pr38934.c] - Blame information for rev 318

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

Line No. Rev Author Line
1 298 jeremybenn
/* PR middle-end/38934 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -std=gnu99 -w" } */
4
 
5
/* This variable needed only to work around earlier optimizations than VRP.  */
6
unsigned char g;
7
 
8
extern void abort ();
9
 
10
void
11
f (long long int p)
12
{
13
  g = 255;
14
  if (p >= -9223372036854775808LL - (signed char) g)
15
    p = 1;
16
 
17
  if (p)
18
    abort ();
19
}

powered by: WebSVN 2.1.0

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