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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [20111227-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
/* PR rtl-optimization/51667 */
2
/* Testcase by Uros Bizjak <ubizjak@gmail.com> */
3
 
4
extern void abort (void);
5
 
6
void __attribute__((noinline,noclone))
7
bar (int a)
8
{
9
  if (a != -1)
10
    abort ();
11
}
12
 
13
void __attribute__((noinline,noclone))
14
foo (short *a, int t)
15
{
16
  short r = *a;
17
 
18
  if (t)
19
    bar ((unsigned short) r);
20
  else
21
    bar ((signed short) r);
22
}
23
 
24
short v = -1;
25
 
26
int main(void)
27
{
28
  foo (&v, 0);
29
  return 0;
30
}

powered by: WebSVN 2.1.0

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