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/] [execute/] [941015-1.c] - Blame information for rev 297

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
int
2
foo1 (value)
3
     long long value;
4
{
5
  register const long long constant = 0xc000000080000000LL;
6
 
7
  if (value < constant)
8
    return 1;
9
  else
10
    return 2;
11
}
12
 
13
int
14
foo2 (value)
15
     unsigned long long value;
16
{
17
  register const unsigned long long constant = 0xc000000080000000LL;
18
 
19
  if (value < constant)
20
    return 1;
21
  else
22
    return 2;
23
}
24
 
25
main ()
26
{
27
  unsigned long long value = 0xc000000000000001LL;
28
  int x, y;
29
 
30
  x = foo1 (value);
31
  y = foo2 (value);
32
  if (x != y || x != 1)
33
    abort ();
34
  exit (0);
35
}

powered by: WebSVN 2.1.0

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