blob: a051e2e53c4a4fa097ef20bb0f6a6ad6f28db2be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* { 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);
}
|