Debian Codegraph @

gcc/testsuite/gcc.dg/vect/tsvc/vect-tsvc-s176.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 -Diterations=3200" } */
5 /* { dg-additional-options "-DTRUNCATE_TEST" { target { ! run_expensive_tests } } } */
6
7 /* { dg-require-effective-target vect_float } */
8
9 #include "tsvc.h"
10
11 real_t s176(struct args_t * func_args)
12 {
13 // symbolics
14 // convolution
15
16 initialise_arrays(__func__);
17
18 #ifdef TRUNCATE_TEST
19 /* Reduce the iteration counts without changing what is a variable and
20 what is a constant expression.
21 32000/25 == 640, i.e. it still has a nice power of two factor, but is
22 not a power of two itself, and still somewhat large-ish, so hopefully
23 this won't perturb the vectorizer decisions much. */
24 #define M_CONST LEN_1D/50
25 #else
26 #define M_CONST LEN_1D/2
27 #endif
28 int m = M_CONST;
29
30 for (int nl = 0; nl < 4*(10*iterations/LEN_1D); nl++) {
31 for (int j = 0; j < (M_CONST); j++) {
32 for (int i = 0; i < m; i++) {
33 a[i] += b[i+m-j-1] * c[j];
34 }
35 }
36 dummy(a, b, c, d, e, aa, bb, cc, 0.);
37 }
38
39 return calc_checksum(__func__);
40 }
41
42 int main (int argc, char **argv)
43 {
44 int n1 = 1;
45 int n3 = 1;
46 int* ip;
47 real_t s1,s2;
48 init(&ip, &s1, &s2);
49
50 run(&s176, "s176", NULL);
51
52 return 0;
53 }
54
55 /* { dg-final { scan-tree-dump "vectorized 1 loops" "vect" } } */