Debian Codegraph @

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

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