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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [pr49281.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 target/49281 */
2
 
3
extern void abort (void);
4
 
5
__attribute__((noinline, noclone)) int
6
foo (int x)
7
{
8
  return (x << 2) | 4;
9
}
10
 
11
__attribute__((noinline, noclone)) int
12
bar (int x)
13
{
14
  return (x << 2) | 3;
15
}
16
 
17
int
18
main ()
19
{
20
  if (foo (43) != 172 || foo (1) != 4 || foo (2) != 12)
21
    abort ();
22
  if (bar (43) != 175 || bar (1) != 7 || bar (2) != 11)
23
    abort ();
24
  return 0;
25
}

powered by: WebSVN 2.1.0

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