gcc/testsuite/gcc.target/powerpc/vsx-vectorize-9.c
raw| 1 | /* { dg-do run } */ |
| 2 | /* { dg-options "-O2 -ftree-vectorize -fno-tree-loop-distribute-patterns -fno-vect-cost-model -fdump-tree-vect-details" } */ |
| 3 | |
| 4 | /* Taken from vect/vect-align-1.c. */ |
| 5 | #include <stdlib.h> |
| 6 | #include <stdarg.h> |
| 7 | |
| 8 | #include "vsx-vectorize-1.c" |
| 9 | |
| 10 | int main (void) |
| 11 | { |
| 12 | int i; |
| 13 | struct foo *p = malloc (2*sizeof (struct foo)); |
| 14 | |
| 15 | main1 (p); |
| 16 | |
| 17 | /* check results: */ |
| 18 | for (i = 0; i < N; i++) |
| 19 | { |
| 20 | if (p->y[i] != x[i]) |
| 21 | abort (); |
| 22 | } |
| 23 | return 0; |
| 24 | } |