libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-32-chars.c
blobc2e29b8fb29ca1ebee6a2d428f5292cfb035621c
1 /* { dg-do compile } */
2 /* { dg-additional-options "-fdump-tree-optimized-details-blocks" } */
3 /* { dg-additional-options "-mavx512bw -mavx512vl" { target { i?86-*-* x86_64-*-* } } } */
5 char a[32];
6 char b[32];
7 char c[32];
9 void test()
11 int i = 0;
12 for (i = 0; i < 32; i++)
13 if (b[i] > 0)
14 a[i] = c[i];
17 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" { target { i?86-*-* x86_64-*-* } } } } */
18 /* { dg-final { scan-tree-dump-not "Invalid sum" "optimized" } } */