URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [vect-35.c] - Rev 816
Compare with Previous | Blame | View Log
/* { dg-require-effective-target vect_int } */ #include <stdarg.h> #include "tree-vect.h" #define N 16 int main1 () { union { char a[N] __attribute__ ((__aligned__(16))); char b[N] __attribute__ ((__aligned__(16))); } s; int i; /* Initialization. */ for (i = 0; i < N; i++) { s.b[i] = 3*i; } /* Can't vectorize - dependence analysis fails cause s.a and s.b may overlap. */ for (i = 0; i < N; i++) { s.a[i] = s.b[i] + 1; } /* check results: */ for (i = 0; i < N; i++) { if (s.a[i] != 3*i + 1) abort (); } return 0; } int main (void) { check_vect (); return main1 (); } /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */ /* { dg-final { scan-tree-dump-times "can't determine dependence between" 1 "vect" } } */ /* { dg-final { cleanup-tree-dump "vect" } } */