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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [g++.dg/] [other/] [vrp1.C] - Blame information for rev 693

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 693 jeremybenn
// { dg-do compile }
2
// { dg-options "-O2" }
3
// This caused a crash in VRP because TREE_OVERFLOW was set for MIN.
4
 
5
template
6
long long mod (long long l, long long r)
7
{
8
  if (l == MIN && r == -1)
9
    return 0LL;
10
  return l % r;
11
}
12
template long long mod<-0x8000000000000000LL> (long long, long long);

powered by: WebSVN 2.1.0

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