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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [torture/] [pr26515.c] - Rev 298

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

/* { dg-options "-march=v10" { target cris*-*-* } } */
struct i
{
  long long i_size;
  struct a *i_mapping;
};
struct p
{
  struct a *mapping;
  long index;
};
extern void b (struct p*, unsigned);
extern void u (struct p*);
void
block_page_mkwrite (struct i *i, struct p *p)
{
  unsigned end = 0;
  long long size = 0;
  size = i->i_size;
  if ((p->mapping != i->i_mapping))
    goto out_unlock;
  if (((p->index + 1) << 13) > size)
    end = size & ~(~(((1UL) << 13) - 1));
  b (p, end);
out_unlock:
  u (p);
}
 

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

powered by: WebSVN 2.1.0

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