From af60228addb5a8b6294d2ba9e81e134d359ca043 Mon Sep 17 00:00:00 2001 From: Ilya Leoshkevich Date: Tue, 2 Mar 2021 02:12:38 +0100 Subject: [PATCH] IBM Z: Compile mul-signed-overflow tests on old machines Commit 34d39d140913 ("IBM Z: Run mul-signed-overflow tests only on z14") restricted mul-signed-overflow tests to z14+. It's actually fine to compile them on old machines, only running needs to be restricted. gcc/testsuite/ChangeLog: * gcc.target/s390/mul-signed-overflow-1.c: Compile on old machines. * gcc.target/s390/mul-signed-overflow-2.c: Likewise. --- gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c | 1 + gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c | 1 + 2 files changed, 2 insertions(+) diff --git a/gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c b/gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c index be95acc54aa2..e8b1938dab7e 100644 --- a/gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c +++ b/gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c @@ -1,3 +1,4 @@ +/* { dg-do compile } */ /* { dg-do run { target { s390_z14_hw } } } */ /* z14 only because we need msrkc, msc, msgrkc, msgc */ /* { dg-options "-O3 -march=z14 -mzarch --save-temps" } */ diff --git a/gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c b/gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c index f5fbf276c5f2..01328e1d286a 100644 --- a/gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c +++ b/gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c @@ -1,3 +1,4 @@ +/* { dg-do compile } */ /* { dg-do run { target { s390_z14_hw } } } */ /* z14 only because we need msrkc, msc, msgrkc, msgc */ /* { dg-options "-O3 -march=z14 -mzarch --save-temps" } */