* gcc.dg/20020926-1.c: New test.

From-SVN: r57544
This commit is contained in:
Ulrich Weigand 2002-09-26 18:26:08 +00:00 committed by Ulrich Weigand
parent 1717e19e2f
commit b784617e85
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2002-09-26 Ulrich Weigand <uweigand@de.ibm.com>
* gcc.dg/20020926-1.c: New test.
2002-09-25 David S. Miller <davem@redhat.com>
PR target/7842

View File

@ -0,0 +1,14 @@
/* Make sure that LEGITIMIZE_ADDRESS is called to handle
negative displacements. */
/* { dg-do compile { target s390-*-* } } */
/* { dg-options "-O2" } */
int test (int *addr)
{
return *(addr - 1);
}
/* { dg-final { scan-assembler "-4096" } } */
/* { dg-final { scan-assembler-not "ahi" } } */