1 /* This file is distributed under the University of Illinois Open Source
2 License. See license.txt for details. */
4 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
5 /* { dg-require-effective-target vect_float } */
9 real_t
s4116(struct args_t
* func_args
)
11 // indirect addressing
12 // more complicated sparse sdot
15 struct{int * __restrict__ a
;int b
;int c
;} * x
= func_args
->arg_info
;
16 int * __restrict__ ip
= x
->a
;
20 initialise_arrays(__func__
);
24 for (int nl
= 0; nl
< 100*iterations
; nl
++) {
26 for (int i
= 0; i
< LEN_2D
-1; i
++) {
28 sum
+= a
[off
] * aa
[j
-1][ip
[i
]];
30 dummy(a
, b
, c
, d
, e
, aa
, bb
, cc
, 0.);
36 int main (int argc
, char **argv
)
44 run(&s4116
, "s4116", &(struct{int * a
; int b
; int c
;}){ip
, LEN_2D
/2, n1
});
49 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */