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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc2/] [gcc/] [testsuite/] [gcc.dg/] [div-compare-1.c] - Blame information for rev 384

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
/* { dg-do run } */
2
/* { dg-options "-std=c99" } */
3
 
4
extern void abort(void);
5
 
6
typedef unsigned long long uint64;
7
 
8
int very_large_value (uint64 t)
9
{
10
  return (t / 1000000000ULL) > 9223372037ULL;
11
}
12
 
13
int main(void)
14
{
15
  uint64 t = 0xC000000000000000ULL;
16
 
17
  if (!very_large_value (t))
18
    abort ();
19
 
20
  return 0;
21
}

powered by: WebSVN 2.1.0

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