[AArch64] Refactor reduc_<su>plus patterns.
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / vect-fmovd-zero.c
blob667d22745e24f20368e933170e1b16aaf1f019a3
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-all" } */
4 #define N 32
6 void
7 foo (double *output)
9 int i = 0;
10 /* Vectorizable. */
11 for (i = 0; i < N; i++)
12 output[i] = 0.0;
15 /* { dg-final { scan-assembler "movi\\tv\[0-9\]+\\.2d, 0" } } */
16 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
17 /* { dg-final { cleanup-tree-dump "vect" } } */