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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 297 jeremybenn
struct foo
2
{
3
  unsigned long long b:40;
4
} x;
5
 
6
extern void abort (void);
7
 
8
void test1(unsigned long long res)
9
{
10
  /* The shift is carried out in 40 bit precision.  */
11
  if (x.b<<32 != res)
12
    abort ();
13
}
14
 
15
int main()
16
{
17
  x.b = 0x0100;
18
  test1(0);
19
  return 0;
20
}

powered by: WebSVN 2.1.0

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