Debian Codegraph @

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

raw
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-not "from scalars" "slp2" } } */
14 /* { dg-final { scan-tree-dump "optimized: basic block" "slp2" } } */