PR tree-optimization/84740
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-37.c
blobdbbba87985b064b128db39dd11d7dc41c418feef
1 /* { dg-require-effective-target vect_int } */
3 #include "tree-vect.h"
5 extern void abort (void);
7 int a[16];
8 int b[4];
10 void __attribute__((noinline))
11 foo (void)
13 b[0] = a[0];
14 b[1] = a[4];
15 b[2] = a[8];
16 b[3] = a[12];
19 int main()
21 int i;
22 check_vect ();
23 for (i = 0; i < 16; ++i)
25 a[i] = i;
26 __asm__ volatile ("");
28 foo ();
29 if (b[0] != 0 || b[1] != 4 || b[2] != 8 || b[3] != 12)
30 abort ();
31 return 0;