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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
/* This testcase used to fail because of a bug in
2
   arm.md:*minmax_arithsi.  */
3
 
4
/* { dg-do run } */
5
/* { dg-options "-O1" } */
6
 
7
extern void abort (void);
8
 
9
int __attribute__((noinline))
10
foo (int a, int b)
11
{
12
  int max = (b > 0) ? b : 0;
13
  return max - a;
14
}
15
 
16
int
17
main (void)
18
{
19
  if (foo (3, -1) != -3)
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.