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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ifcvt-onecmpl-abs-1.c] - Blame information for rev 711

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

Line No. Rev Author Line
1 688 jeremybenn
 
2
extern void abort(void);
3
 
4
__attribute__ ((noinline))
5
int foo(int n)
6
{
7
  if (n < 0)
8
    n = ~n;
9
 
10
  return n;
11
}
12
 
13
int main(void)
14
{
15
  if (foo (-1) != 0)
16
    abort ();
17
 
18
  return 0;
19
}

powered by: WebSVN 2.1.0

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