LWG 3035. std::allocator's constructors should be constexpr
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-34.c
blobffd6ce25f640f6263d42c36656af11a4fe84ebc7
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[3];
13 a[1] = b[2];
14 a[2] = b[1];
15 a[3] = b[0];
16 a[4] = b[2];
17 a[5] = b[3];
18 a[6] = b[4];
19 a[7] = b[5];
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] != 3 || a[1] != 2 || a[2] != 1 || a[3] != 0
30 || a[4] != 2 || a[5] != 3 || a[6] != 4 || a[7] != 5)
31 abort ();
32 return 0;
35 /* ??? XFAILed because we access "excess" elements with the permutation. */
36 /* { dg-final { scan-tree-dump "basic block vectorized" "slp2" { target vect_perm xfail { ! { aarch64*-*-* arm*-*-* } } } } } */