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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr30665-1.c] - Blame information for rev 754

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

Line No. Rev Author Line
1 689 jeremybenn
/* PR target/30665: bug in cris.md peephole2 condition.
2
   Testcase for trunk.  */
3
/* { dg-do run } */
4
 
5
extern void abort (void);
6
extern void exit (int);
7
 
8
int  __attribute__ ((__noinline__)) f (unsigned *p, int *x)
9
{
10
  int y = *p++ & 0xfff;
11
  *x++ = y;
12
  *x = *p;
13
  return y;
14
}
15
 
16
int main (void)
17
{
18
  unsigned u[2] = { 0x3aad, 0x5ad1 };
19
  int x[2] = {17689, 23456};
20
 
21
  if (f (u, x) != 0xaad || x[0] != 0xaad || x[1] != 0x5ad1)
22
    abort ();
23
  exit (0);
24
}

powered by: WebSVN 2.1.0

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