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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr37125.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
extern void abort (void);
2
 
3
static inline unsigned int
4
mod_rhs(int rhs)
5
{
6
  if (rhs == 0) return 1;
7
  return rhs;
8
}
9
 
10
void func_44 (unsigned int p_45);
11
void func_44 (unsigned int p_45)
12
{
13
  if (!((p_45 * -9) % mod_rhs (-9))) {
14
      abort();
15
  }
16
}
17
 
18
int main (void)
19
{
20
  func_44 (2);
21
  return 0;
22
}
23
 

powered by: WebSVN 2.1.0

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