libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-conditional_store_6.c
blob5e1aedf3726b073c132bb64a9b474592ceb8e9b9
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 foo3 (unsigned long long *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])
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-*-* } } } */