On Mon, 2020-06-15 at 14:59 -0500, Peter Bergner via Gcc-patches wrote: > This patch adds the testsuite test cases for all of the MMA built- > ins. > > This patch plus patch1 and patch2 passed bootstrap and regtesting > with no > regressions on both powerpc64le-linux and powerpc64-linux. Ok for > trunk? > > Peter > > 2020-06-15 Peter Bergner <berg...@linux.ibm.com> > > gcc/testsuite/ > * gcc.target/powerpc/mma-builtin-1.c: New test. > * gcc.target/powerpc/mma-builtin-2.c: New test. > * gcc.target/powerpc/mma-builtin-3.c: New test. > * gcc.target/powerpc/mma-builtin-4.c: New test. > * gcc.target/powerpc/mma-builtin-5.c: New test. > * gcc.target/powerpc/mma-builtin-6.c: New test. > > diff --git a/gcc/testsuite/gcc.target/powerpc/mma-builtin-1.c > b/gcc/testsuite/gcc.target/powerpc/mma-builtin-1.c > new file mode 100644 > index 00000000000..a971c869095 > --- /dev/null > +++ b/gcc/testsuite/gcc.target/powerpc/mma-builtin-1.c > @@ -0,0 +1,313 @@ > +/* { dg-do compile } */ > +/* { dg-require-effective-target powerpc_future_ok } */ > +/* { dg-options "-Wno-psabi -mdejagnu-cpu=future -O2" } */ > +
Compared the tests with scan-assembler stanzas, tests look reasonable. Per the previous patches, the -mma option comes with -mcpu=future option automatically, so thats good. I think it would be good to have an additional test or two to verify the -mma and -mno-mma options behave as desired, but that could be a later add-on. otherwise lgtm. Thanks -Will