From 867a1e281843bfcff6fd9613f7fc17010827272c Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Wed, 14 Nov 2018 13:07:13 +0000 Subject: [PATCH] [PATCH 1/2] S/390: Disable 3 global-array-* tests for 31-bit mode These tests rely on larl->movdi merge, which is not implemented for 31-bit mode. gcc/testsuite/ChangeLog: 2018-11-14 Ilya Leoshkevich * gcc.target/s390/global-array-almost-huge-element.c: Run only in 64-bit mode. * gcc.target/s390/global-array-almost-negative-huge-element.c: Likewise. * gcc.target/s390/global-array-even-element.c: Likewise. From-SVN: r266144 --- gcc/testsuite/ChangeLog | 8 ++++++++ .../gcc.target/s390/global-array-almost-huge-element.c | 2 +- .../s390/global-array-almost-negative-huge-element.c | 2 +- gcc/testsuite/gcc.target/s390/global-array-even-element.c | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e56706c152a..cae11db79cf 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,11 @@ +2018-11-14 Ilya Leoshkevich + + * gcc.target/s390/global-array-almost-huge-element.c: Run only + in 64-bit mode. + * gcc.target/s390/global-array-almost-negative-huge-element.c: + Likewise. + * gcc.target/s390/global-array-even-element.c: Likewise. + 2018-11-14 Wilco Dijkstra Jackson Woodruff diff --git a/gcc/testsuite/gcc.target/s390/global-array-almost-huge-element.c b/gcc/testsuite/gcc.target/s390/global-array-almost-huge-element.c index 28e4ccd9bdd..afbe1646802 100644 --- a/gcc/testsuite/gcc.target/s390/global-array-almost-huge-element.c +++ b/gcc/testsuite/gcc.target/s390/global-array-almost-huge-element.c @@ -1,5 +1,5 @@ /* Test the maximum possible LARL offset. */ -/* { dg-do compile } */ +/* { dg-do compile { target lp64 } } */ /* { dg-options "-O1" } */ extern char a[] __attribute__ ((aligned (2))); diff --git a/gcc/testsuite/gcc.target/s390/global-array-almost-negative-huge-element.c b/gcc/testsuite/gcc.target/s390/global-array-almost-negative-huge-element.c index 0012ceb8d49..a171f14db87 100644 --- a/gcc/testsuite/gcc.target/s390/global-array-almost-negative-huge-element.c +++ b/gcc/testsuite/gcc.target/s390/global-array-almost-negative-huge-element.c @@ -1,5 +1,5 @@ /* Test the minimum LARL offset. */ -/* { dg-do compile } */ +/* { dg-do compile { target lp64 } } */ /* { dg-options "-O1" } */ extern char a[] __attribute__ ((aligned (2))); diff --git a/gcc/testsuite/gcc.target/s390/global-array-even-element.c b/gcc/testsuite/gcc.target/s390/global-array-even-element.c index 5737f7e3496..a17b0c28112 100644 --- a/gcc/testsuite/gcc.target/s390/global-array-even-element.c +++ b/gcc/testsuite/gcc.target/s390/global-array-even-element.c @@ -1,5 +1,5 @@ /* Test accesses to even global array elements. */ -/* { dg-do compile } */ +/* { dg-do compile { target lp64 } } */ /* { dg-options "-O1" } */ extern char a[] __attribute__ ((aligned (2))); -- 2.30.2