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.c-torture/] [compile/] [20010404-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 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.