[Bug testsuite/103051] [12 regression] new test case gcc.dg/vect/tsvc/vect-tsvc-s112.c fails in r12-4840
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Nov 11 18:03:27 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103051
--- Comment #10 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #9)
> All right, so something like this should work, right?
>
> diff --git a/gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s112.c
> b/gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s112.c
> index 3c6ae49f212..851b54e68b1 100644
> --- a/gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s112.c
> +++ b/gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s112.c
> @@ -36,4 +36,4 @@ int main (int argc, char **argv)
> return 0;
> }
>
> -/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
> \ No newline at end of file
> +/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target
> { !powerpc*-*-* || has_arch_pwr8 } } } } */
Tcl's || is short-circuiting, so that should work yes. But put that
newline where it should be. And there should be a space after the !
I think? Never sure about that (it's not Tcl, it's parsed manually
by DG, the rules are different).
More information about the Gcc-bugs
mailing list