arm: fix typo in dg-require-effective-target [PR118089]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-conditional_store_2.c
bloba03898793c0bfa63491fe8b1547a99ee45c24d24
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_masked_store } */
5 /* { dg-additional-options "-mavx2" { target avx2 } } */
6 /* { dg-additional-options "-march=armv9-a" { target aarch64-*-* } } */
8 void foo2 (char *restrict a, int *restrict b, int *restrict c, int n, int stride)
10 if (stride <= 1)
11 return;
13 for (int i = 0; i < n; i++)
15 int res = c[i];
16 int t = b[i+stride];
17 if (a[i] != 0)
18 t = res;
19 c[i] = t;
23 /* { dg-final { scan-tree-dump "LOOP VECTORIZED" "vect" } } */
24 /* { dg-final { scan-tree-dump-not "VEC_COND_EXPR " "vect" { target aarch64-*-* } } } */