blob: a934233a33df86ed4ca9bfe9aac65e39363689c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* { dg-do run } */
/* { dg-require-effective-target arm_neon_hw } */
/* { dg-options "-mfpu=neon -ffast-math -ftree-vectorize -fno-common -O2 -mno-unaligned-access" } */
/* Test for-mno-unaligned-access and -ftree-vectorize and results bus error. */
#define N 128
char ia[N];
char ib[N+1];
int main() {
int i;
for(i = 0; i < N; ++i) {
ia[i] = ib[i + 1];
}
return 0;
}
|