From a46461133eac42da46efe784b5b596c35ebcdafc Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Wed, 4 Oct 2017 11:57:16 +0000 Subject: [PATCH] Testcases using dg-options require at least -mzarch. Testcases which override the vect default options using dg-options need at least -mzarch on S/390 32 bit. gcc/testsuite/ChangeLog: 2017-10-04 Andreas Krebbel * gfortran.dg/vect/fast-math-mgrid-resid.f: Use -mzarch on S/390. * gfortran.dg/vect/pr77848.f: Likewise. From-SVN: r253404 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f | 1 + gcc/testsuite/gfortran.dg/vect/pr77848.f | 1 + 3 files changed, 7 insertions(+) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 50f82c5e9a8..1dea25d48ff 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-10-04 Andreas Krebbel + + * gfortran.dg/vect/fast-math-mgrid-resid.f: Use -mzarch on S/390. + * gfortran.dg/vect/pr77848.f: Likewise. + 2017-10-04 Andreas Krebbel * lib/target-supports.exp (check_effective_target_vect_float): diff --git a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f index 54f1e9eac63..7e2816b8b4f 100644 --- a/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f +++ b/gcc/testsuite/gfortran.dg/vect/fast-math-mgrid-resid.f @@ -2,6 +2,7 @@ ! { dg-require-effective-target vect_double } ! { dg-options "-O3 --param vect-max-peeling-for-alignment=0 -fpredictive-commoning -fdump-tree-pcom-details" } ! { dg-additional-options "-mprefer-avx128" { target { i?86-*-* x86_64-*-* } } } +! { dg-additional-options "-mzarch" { target { s390*-*-* } } } ******* RESID COMPUTES THE RESIDUAL: R = V - AU * diff --git a/gcc/testsuite/gfortran.dg/vect/pr77848.f b/gcc/testsuite/gfortran.dg/vect/pr77848.f index d54676eee2d..4752205f5d2 100644 --- a/gcc/testsuite/gfortran.dg/vect/pr77848.f +++ b/gcc/testsuite/gfortran.dg/vect/pr77848.f @@ -1,6 +1,7 @@ ! PR 77848: Verify versioning is on when vectorization fails ! { dg-do compile } ! { dg-options "-O3 -ffast-math -fdump-tree-ifcvt -fdump-tree-vect-details" } +! { dg-additional-options "-mzarch" { target { s390*-*-* } } } subroutine sub(x,a,n,m) implicit none -- 2.30.2