Debian Codegraph @

gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s1221.c

raw
1 /* This file is distributed under the University of Illinois Open Source
2 License. See license.txt for details. */
3
4 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
5 /* { dg-require-effective-target vect_float } */
6
7 #include "tsvc.h"
8
9 real_t s1221(struct args_t * func_args)
10 {
11 // run-time symbolic resolution
12
13 initialise_arrays(__func__);
14
15 for (int nl = 0; nl < iterations; nl++) {
16 for (int i = 4; i < LEN_1D; i++) {
17 b[i] = b[i - 4] + a[i];
18 }
19 dummy(a, b, c, d, e, aa, bb, cc, 0.);
20 }
21
22 return calc_checksum(__func__);
23 }
24
25 int main (int argc, char **argv)
26 {
27 int n1 = 1;
28 int n3 = 1;
29 int* ip;
30 real_t s1,s2;
31 init(&ip, &s1, &s2);
32
33 run(&s1221, "s1221", NULL);
34
35 return 0;
36 }
37
38 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */