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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20010404-1.c] - Blame information for rev 774

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

Line No. Rev Author Line
1 688 jeremybenn
/* This testcase caused a floating point exception in the compiler when
2
   compiled with -O2. The crash occurs when trying to simplify division
3
   and modulo operations.  */
4
 
5
#include <limits.h>
6
 
7
extern void bar (int);
8
 
9
void foo ()
10
{
11
  int a = INT_MIN;
12
  int b = -1;
13
  bar (a / b);
14
  bar (a % b);
15
}

powered by: WebSVN 2.1.0

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