1 /* { dg-do compile } */
2 /* { dg-require-effective-target vect_float } */
3 /* { dg-require-effective-target vect64 } */
4 /* { dg-additional-options "-w -Wno-psabi" } */
6 typedef float __attribute__((vector_size(8))) v2f32
;
8 v2f32
f(v2f32 a
, v2f32 b
)
10 /* Check that we vectorize this CTOR without any loads. */
11 return (v2f32
){a
[0] + b
[0], a
[1] + b
[1]};
14 /* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */