Hi!
On Mon, Apr 26, 2021 at 02:00:36PM -0500, [email protected] wrote:
> This adds some test cases to make sure that the combine patterns for p10
> fusion are working.
> +++ b/gcc/testsuite/gcc.target/powerpc/fusion-p10-2logical.c
> @@ -0,0 +1,205 @@
> +/* { dg-do compile { target { powerpc*-*-* } } } */
> +/* { dg-skip-if "" { powerpc*-*-darwin* } } */
Same issues again.
> +/* Recreate with:
> + grep ' \*fuse_' fusion-p10-2logical.s|sed -e 's,^.*\*,,' |sort -k 7,7
> |uniq -c|awk '{l=30-length($2); printf("/%s* { %s { scan-assembler-times
> \"%s\"%-*s %4d } } *%s/\n","","dg-final",$2,l,"",$1,"");}'
> + */
> +
> +/* { dg-final { scan-assembler-times "fuse_and_and/1"
> 16 } } */
You could make the lines not wrap easy enough ;-) (Not that it matters of
course, this is a testcase, heh.)
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/powerpc/fusion-p10-ldcmpi.c
> @@ -0,0 +1,66 @@
> +/* { dg-do compile { target { powerpc*-*-* } } } */
> +/* { dg-skip-if "" { powerpc*-*-darwin* } } */
And one more.
Okay for trunk and backport to 11 with those things looked at. Thanks!
Segher