aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2002-09-26 18:26:08 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2002-09-26 18:26:08 +0000
commitb784617e85fde80e65764d35b05047b437fada58 (patch)
tree3bb87afa46a1118806a3a1531e230a22435d507a /gcc
parent1717e19e2fd482bd93a2b3d55afb8b55f351815b (diff)
downloadgcc-b784617e85fde80e65764d35b05047b437fada58.zip
gcc-b784617e85fde80e65764d35b05047b437fada58.tar.gz
gcc-b784617e85fde80e65764d35b05047b437fada58.tar.bz2
* gcc.dg/20020926-1.c: New test.
From-SVN: r57544
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/ChangeLog4
-rw-r--r--gcc/testsuite/gcc.dg/20020926-1.c14
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 8d5d331..c581c0f 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -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
diff --git a/gcc/testsuite/gcc.dg/20020926-1.c b/gcc/testsuite/gcc.dg/20020926-1.c
new file mode 100644
index 0000000..d2d6574
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/20020926-1.c
@@ -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" } } */
+