0bfba01452de25158bd946d8223f70c3fffa799f
[gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-pr95839.c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-additional-options "-w -Wno-psabi" } */
4
5 typedef float __attribute__((vector_size(16))) v4f32;
6
7 v4f32 f(v4f32 a, v4f32 b)
8 {
9 /* Check that we vectorize this CTOR without any loads. */
10 return (v4f32){a[0] + b[0], a[1] + b[1], a[2] + b[2], a[3] + b[3]};
11 }
12
13 /* { dg-final { scan-tree-dump "basic block vectorized" "slp2" } } */