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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [961122-1.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
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.