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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr37931.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 688 jeremybenn
/* PR middle-end/37931 */
2
 
3
extern void abort (void);
4
 
5
int
6
foo (int a, unsigned int b)
7
{
8
  return (a | 1) & (b | 1);
9
}
10
 
11
int
12
main (void)
13
{
14
  if (foo (6, 0xc6) != 7)
15
    abort ();
16
  if (foo (0x80, 0xc1) != 0x81)
17
    abort ();
18
  if (foo (4, 4) != 5)
19
    abort ();
20
  if (foo (5, 4) != 5)
21
    abort ();
22
  return 0;
23
}

powered by: WebSVN 2.1.0

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