libstdc++: Move gcc.gnu.org and sourceware.org links to https
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr82518.c
blobce820b78a8dcd7e25bd86acbe0354c42030d9260
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_neon_hw } */
3 /* { dg-additional-options "-O3 -fno-inline -std=gnu99" } */
4 /* { dg-add-options arm_neon } */
6 typedef struct { int x, y; } X;
8 void f4(X *p, int n)
10 for (int i = 0; i < n; i++)
11 { p[i].x = i;
12 p[i].y = i + 1;
16 __attribute ((aligned (16))) X arr[100];
18 int main(void)
20 volatile int fail = 0;
21 f4 (arr, 100);
22 for (int i = 0; i < 100; i++)
23 if (arr[i].y != i+1 || arr[i].x != i)
24 fail = 1;
25 if (fail)
26 __builtin_abort ();
28 return 0;