[Bug tree-optimization/66278] Missed auto-vectorization of an array subtraction

amker at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Apr 19 18:07:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66278

--- Comment #7 from amker at gcc dot gnu.org ---
(In reply to Martin Liška from comment #6)
> (In reply to amker from comment #5)
> > (In reply to Martin Liška from comment #4)
> > > Greating, starting from r238586 the test-case is vectorized. Bin should I
> > > create a test-case from this, or do you have a similar one. I'll then close
> > > the PR.
> > 
> > Yes, please add a test for it.  Thanks.
> 
> Great, one last thing is how to identify that the vectorization happened. A
> dump file output?

Add test in gcc.dg/vect, and something like
/* { dg-final { scan-tree-dump-times "LOOP VECTORIZED" 1 "vect" } } */
You may also need
/* { dg-require-effective-target vect_int } */

Thanks.


More information about the Gcc-bugs mailing list