+/* { dg-do run { target powerpc*-*-* } }*/
+/* { dg-require-effective-target powerpc_altivec_ok } */
+/* { dg-options "-O2 -fdump-tree-expand -mcpu=power4" } */
The requirement for powerpc_altivec_ok is confusing because the test
isn't compiled with -maltivec, and if it were then you'd instead need
to skip the test if it's not running on a machine with AltiVec, not
just a compiler that can generate code for it. If that check is used
to limit the powerpc targets on which the test will be run to those that
support -mcpu=power4, please add a comment.
If the same test can be used on other targets, the test directives can
be modified to:
/* { dg-do run { target { { powerpc*-*-* && powerpc_altivec_ok } || { other-targets} } } } */
/* { dg-options "-O2 -fdump-tree-expand -mcpu=power4" { target powerpc*-*-* } } */
/* { dg-options "-O2 -fdump-tree-expand -mother1" { target other1*-*-* } } */
/* { dg-options "-O2 -fdump-tree-expand -mother2" { target other2*-*-* } } */
/* { dg-final-use { scan-tree-dump "default case 5 with cost 774 promoted" "expand" { target powerpc*-*-* } } */
/* { dg-final-use { scan-tree-dump "expected string for other1" "expand" { target other1*-*-* } } */
/* { dg-final-use { scan-tree-dump "expected string for other2" "expand" { target other2*-*-* } } */