LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-36.c
blobf424d12835302e81a681cd8bf18cd653abc28c11
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
5 extern void abort (void);
7 int a[8], b[8];
9 void __attribute__((noinline,noclone))
10 foo(void)
12 a[0] = b[0];
13 a[1] = b[0];
14 a[2] = b[3];
15 a[3] = b[3];
16 a[4] = b[4];
17 a[5] = b[7];
18 a[6] = b[4];
19 a[7] = b[7];
22 int main()
24 int i;
25 check_vect ();
26 for (i = 0; i < 8; ++i)
27 b[i] = i;
28 foo ();
29 if (a[0] != 0 || a[1] != 0 || a[2] != 3 || a[3] != 3
30 || a[4] != 4 || a[5] != 7 || a[6] != 4 || a[7] != 7)
31 abort ();
32 return 0;
35 /* { dg-final { scan-tree-dump "basic block vectorized" "slp2" { target vect_perm } } } */