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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [961122-1.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
long long acc;
2
 
3
addhi (short a)
4
{
5
  acc += (long long) a << 32;
6
}
7
 
8
subhi (short a)
9
{
10
  acc -= (long long) a << 32;
11
}
12
 
13
main ()
14
{
15
  acc = 0xffff00000000ll;
16
  addhi (1);
17
  if (acc != 0x1000000000000ll)
18
    abort ();
19
  subhi (1);
20
  if (acc != 0xffff00000000ll)
21
    abort ();
22
  exit (0);
23
}

powered by: WebSVN 2.1.0

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