Debian Codegraph @

gcc/testsuite/gcc.dg/vect/bb-slp-conditional_store_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_int } */
3 /* { dg-require-effective-target vect_float } */
4
5 /* { dg-additional-options "-mavx2" { target avx2 } } */
6 /* { dg-additional-options "-march=armv9-a" { target aarch64-*-* } } */
7
8 void foo3 (float *restrict a, int *restrict c)
9 {
10 #pragma GCC unroll 8
11 for (int i = 0; i < 8; i++)
12 c[i] = a[i] > 1.0;
13 }
14
15 /* { dg-final { scan-tree-dump "vectorized using SLP" "slp1" } } */