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/] [g++.dg/] [other/] [vrp1.C] - Blame information for rev 315

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

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