------- Comment #2 from burnus at gcc dot gnu dot org 2007-04-13 12:51 ------- The procedure does: <vector Y> = <vector Y> + <scalar A> * <vector X>
Source code (compiled with the default testsuite options -O2 -ftree-vectorize -ftree-vectorizer-verbose -fdump-tree-vect-stats): SUBROUTINE SAXPY(X, Y, A) DIMENSION X(64), Y(64) Y = Y + A * X END And the following items are checked: ! { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } ! { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" } } ! { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 1 "vect" } } ! { dg-final { scan-tree-dump-times "accesses have the same alignment." 1 "vect" } } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31561