Re: [PATCH] IBM Z: Run mul-signed-overflow-*.c only on z14+
On 3/3/21 11:50 AM, Ilya Leoshkevich wrote: > On Wed, 2021-03-03 at 07:50 +0100, Andreas Krebbel wrote: >> On 3/2/21 11:59 PM, Ilya Leoshkevich wrote: >>> mul-signed-overflow-*.c execution tests fail on z13, because they >>> contain z14-specific instructions. Fix by requiring s390_z14_hw >>> target. >>> >>> gcc/testsuite/ChangeLog: >>> >>> * gcc.target/s390/mul-signed-overflow-1.c: Run only on >>> z14+. >>> * gcc.target/s390/mul-signed-overflow-2.c: Likewise. >> >> I did that change yesterday already. > > Ah, I haven't noticed. One difference between our patches is, though, > that I also have `dg-do compile` - this way, compile tests still run on > z13. Ok, that's a bit better indeed. Feel free to commit that change ontop. Andreas
Re: [PATCH] IBM Z: Run mul-signed-overflow-*.c only on z14+
On Wed, 2021-03-03 at 07:50 +0100, Andreas Krebbel wrote: > On 3/2/21 11:59 PM, Ilya Leoshkevich wrote: > > mul-signed-overflow-*.c execution tests fail on z13, because they > > contain z14-specific instructions. Fix by requiring s390_z14_hw > > target. > > > > gcc/testsuite/ChangeLog: > > > > * gcc.target/s390/mul-signed-overflow-1.c: Run only on > > z14+. > > * gcc.target/s390/mul-signed-overflow-2.c: Likewise. > > I did that change yesterday already. Ah, I haven't noticed. One difference between our patches is, though, that I also have `dg-do compile` - this way, compile tests still run on z13. [...]
Re: [PATCH] IBM Z: Run mul-signed-overflow-*.c only on z14+
On 3/2/21 11:59 PM, Ilya Leoshkevich wrote: > mul-signed-overflow-*.c execution tests fail on z13, because they > contain z14-specific instructions. Fix by requiring s390_z14_hw > target. > > gcc/testsuite/ChangeLog: > > * gcc.target/s390/mul-signed-overflow-1.c: Run only on z14+. > * gcc.target/s390/mul-signed-overflow-2.c: Likewise. I did that change yesterday already. Andreas > --- > gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c | 3 ++- > gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) > > 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 fdf56d6e695..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,4 +1,5 @@ > -/* { dg-do run } */ > +/* { 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 d0088188aa2..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,4 +1,5 @@ > -/* { dg-do run } */ > +/* { 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" } */ > >
[PATCH] IBM Z: Run mul-signed-overflow-*.c only on z14+
mul-signed-overflow-*.c execution tests fail on z13, because they contain z14-specific instructions. Fix by requiring s390_z14_hw target. gcc/testsuite/ChangeLog: * gcc.target/s390/mul-signed-overflow-1.c: Run only on z14+. * gcc.target/s390/mul-signed-overflow-2.c: Likewise. --- gcc/testsuite/gcc.target/s390/mul-signed-overflow-1.c | 3 ++- gcc/testsuite/gcc.target/s390/mul-signed-overflow-2.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 fdf56d6e695..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,4 +1,5 @@ -/* { dg-do run } */ +/* { 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 d0088188aa2..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,4 +1,5 @@ -/* { dg-do run } */ +/* { 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" } */ -- 2.29.2