3 extern void *memset(void *s
, int c
, __SIZE_TYPE__ n
);
4 extern void abort (void);
10 unsigned int array
[ASIZE
];
15 memset(array
, 0, sizeof(array
));
17 /* initialize first half of the array */
18 for (i
= 0; i
< HALF
; i
++)
21 /* fill second half of array in by summing earlier elements of the array
22 gcc 4.5.1 and 4.5.2 incorrectly vectorize this loop! aray[1025] is left
23 at 0 for ASIZE=1028 */
24 for (i
= 0; i
< HALF
-1; i
++)
25 array
[HALF
+i
] = array
[2*i
] + array
[2*i
+ 1];
27 /* see if we have any failures */
29 for (i
= 0; i
< HALF
- 1; i
++)
30 if (array
[HALF
+i
] != array
[2*i
] + array
[2*i
+ 1])