1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/* PR tree-optimization/63189 */
/* { dg-do run } */
#include "tree-vect.h"
short int d[16] = { 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 };
__attribute__((noinline, noclone)) void
foo (void)
{
int j, s = 0;
for (j = 0; j < 8; j++)
s += d[j] * j;
if (s != 7)
abort ();
}
int
main ()
{
check_vect ();
foo ();
return 0;
}
/* { dg-final { cleanup-tree-dump "vect" } } */
|