re PR target/26515 (peephole2 causes unrecognized insn, zero_extending non-general register)
PR target/26515 * gcc.dg/torture/pr26515.c: New test. From-SVN: r152680
This commit is contained in:
parent
0452f0e7f1
commit
352cace6cc
|
@ -1,3 +1,8 @@
|
|||
2009-10-12 Hans-Peter Nilsson <hp@axis.com>
|
||||
|
||||
PR target/26515
|
||||
* gcc.dg/torture/pr26515.c: New test.
|
||||
|
||||
2009-10-12 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR target/41680
|
||||
|
|
|
@ -0,0 +1,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);
|
||||
}
|
Loading…
Reference in New Issue