Committed, thanks Richard. Pan
-----Original Message----- From: Gcc-patches <gcc-patches-bounces+pan2.li=intel....@gcc.gnu.org> On Behalf Of Richard Biener via Gcc-patches Sent: Wednesday, August 30, 2023 4:36 PM To: Juzhe-Zhong <juzhe.zh...@rivai.ai> Cc: gcc-patches@gcc.gnu.org Subject: Re: [PATCH] test: Add xfail for riscv_vector On Wed, 30 Aug 2023, Juzhe-Zhong wrote: > Like ARM SVE, when we enable scalable vectorization for RVV, > we can't do constant fold for these yet for both ARM SVE and RVV. > > > Ok for trunk ? OK. > gcc/testsuite/ChangeLog: > > * gcc.dg/vect/pr88598-1.c: Add riscv_vector. > * gcc.dg/vect/pr88598-2.c: Ditto. > * gcc.dg/vect/pr88598-3.c: Ditto. > > --- > gcc/testsuite/gcc.dg/vect/pr88598-1.c | 2 +- > gcc/testsuite/gcc.dg/vect/pr88598-2.c | 2 +- > gcc/testsuite/gcc.dg/vect/pr88598-3.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/gcc/testsuite/gcc.dg/vect/pr88598-1.c > b/gcc/testsuite/gcc.dg/vect/pr88598-1.c > index e25c6c04543..ddcebb067ea 100644 > --- a/gcc/testsuite/gcc.dg/vect/pr88598-1.c > +++ b/gcc/testsuite/gcc.dg/vect/pr88598-1.c > @@ -51,4 +51,4 @@ main () > > /* ??? We need more constant folding for this to work with fully-masked > loops. */ > -/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail > aarch64_sve } } } */ > +/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail { > aarch64_sve || riscv_vector } } } } */ > diff --git a/gcc/testsuite/gcc.dg/vect/pr88598-2.c > b/gcc/testsuite/gcc.dg/vect/pr88598-2.c > index f4c41bd8e58..ef5ea8a1a86 100644 > --- a/gcc/testsuite/gcc.dg/vect/pr88598-2.c > +++ b/gcc/testsuite/gcc.dg/vect/pr88598-2.c > @@ -51,4 +51,4 @@ main () > > /* ??? We need more constant folding for this to work with fully-masked > loops. */ > -/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail > aarch64_sve } } } */ > +/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail { > aarch64_sve || riscv_vector } } } } */ > diff --git a/gcc/testsuite/gcc.dg/vect/pr88598-3.c > b/gcc/testsuite/gcc.dg/vect/pr88598-3.c > index 0fc23bf0ee7..75b8d024a95 100644 > --- a/gcc/testsuite/gcc.dg/vect/pr88598-3.c > +++ b/gcc/testsuite/gcc.dg/vect/pr88598-3.c > @@ -51,4 +51,4 @@ main () > > /* ??? We need more constant folding for this to work with fully-masked > loops. */ > -/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail > aarch64_sve } } } */ > +/* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail { > aarch64_sve || riscv_vector } } } } */ > -- Richard Biener <rguent...@suse.de> SUSE Software Solutions Germany GmbH, Frankenstrasse 146, 90461 Nuernberg, Germany; GF: Ivo Totev, Andrew McDonald, Werner Knoblich; (HRB 36809, AG Nuernberg)