[gcc r11-7507] IBM Z: Compile mul-signed-overflow tests on old machines

Ilya Leoshkevich iii@gcc.gnu.org
Thu Mar 4 13:28:41 GMT 2021


https://gcc.gnu.org/g:af60228addb5a8b6294d2ba9e81e134d359ca043

commit r11-7507-gaf60228addb5a8b6294d2ba9e81e134d359ca043
Author: Ilya Leoshkevich <iii@linux.ibm.com>
Date:   Tue Mar 2 02:12:38 2021 +0100

    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.

Diff:
---
 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 be95acc54aa..e8b1938dab7 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 f5fbf276c5f..01328e1d286 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" } */


More information about the Gcc-cvs mailing list