1 /* { dg-require-effective-target vect_int } */
2 /* { dg-require-effective-target vect_perm } */
3 /* PR tree-optimization/67682. */
7 int __attribute__((__aligned__(8))) a
[8];
8 int __attribute__((__aligned__(8))) b
[4];
10 __attribute__ ((noinline
)) void
24 main (int argc
, char **argv
)
28 for (int i
= 0; i
< 8; i
++)
30 for (int i
= 0; i
< 4; i
++)
32 __asm__
volatile ("" : : : "memory");
34 __asm__
volatile ("" : : : "memory");
35 if ((a
[0] != 7) || a
[1] != 6 || (a
[2] != 8) || (a
[3] != 9)
36 || (a
[4] != 21) || (a
[5] != 16) || (a
[6] != 30) || (a
[7] != 35))
41 /* { dg-final { scan-tree-dump-times "Basic block will be vectorized using SLP" 1 "slp2" } } */
42 /* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp2" } } */