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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [pr42084.c] - Blame information for rev 713

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-O1 -fno-delete-null-pointer-checks" } */
3
extern void abort (void);
4
int g = 0;
5
static int __attribute__((noinline)) f (long long a, long long b)
6
{
7
  int cmp;
8
  cmp = a > b;
9
  if (&g == 0)
10
    cmp-=2;
11
  else
12
    cmp++;
13
  return cmp;
14
}
15
 
16
int main (void)
17
{
18
  int ret = f (2, 1);
19
  if (ret != 2)
20
    abort ();
21
  return 0;
22
}

powered by: WebSVN 2.1.0

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