cfgexpand: Expand comment on when non-var clobbers can show up
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / vect-multitypes-12.c
blobdd5fffaed8e714114dcf964ffc6b5419fba1aa9f
1 /* { dg-require-effective-target vect_int } */
3 #include <stdarg.h>
4 #include "tree-vect.h"
6 #define N 64
8 char x[N] __attribute__ ((__aligned__(__BIGGEST_ALIGNMENT__)));
10 __attribute__ ((noinline)) int
11 foo (int len, int *z) {
12 int i;
14 for (i=0; i<len; i++) {
15 z[i] = x[i];
20 int main (void)
22 char i;
23 int z[N+4];
25 check_vect ();
27 for (i=0; i<N; i++) {
28 x[i] = i;
29 __asm__ volatile ("" : : : "memory");
32 foo (N,z+2);
34 #pragma GCC novector
35 for (i=0; i<N; i++) {
36 if (z[i+2] != x[i])
37 abort ();
40 return 0;
43 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_unpack } } } */