Debian Codegraph @

gcc/testsuite/gcc.dg/vect/vect-early-break_47.c

raw
1 /* { dg-add-options vect_early_break } */
2 /* { dg-do compile } */
3 /* { dg-require-effective-target vect_early_break } */
4 /* { dg-require-effective-target vect_float } */
5
6 void abort ();
7
8 float results1[16] = {192.00,240.00,288.00,336.00,384.00,432.00,480.00,528.00,0.00};
9 float results2[16] = {0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,0.00,54.00,120.00,198.00,288.00,390.00,504.00,630.00};
10 float a[16] = {0};
11 float e[16] = {0};
12 float b[16] = {0,3,6,9,12,15,18,21,24,27,30,33,36,39,42,45};
13 int main1 ()
14 {
15 int i;
16 for (i=0; i<16; i++)
17 {
18 if (a[i] != results1[i] || e[i] != results2[i])
19 abort();
20 }
21
22 if (a[i+3] != b[i-1])
23 abort ();
24 }
25
26 /* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */