1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-additional-options "-w -Wno-psabi" } */
5 typedef float __attribute__((vector_size(16))) v4f32
;
7 v4f32
f(v4f32 a
, v4f32 b
)
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]};
13 /* { dg-final { scan-tree-dump-not "from scalars" "slp2" } } */
14 /* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */