1 /* PR middle-end/66142 */
2 /* { dg-do compile } */
3 /* { dg-additional-options "-ffast-math -fopenmp-simd --param early-inlining-insns=14" } */
4 /* { dg-additional-options "-mavx" { target avx_runtime } } */
6 struct A
{ float x
, y
; };
7 struct B
{ struct A t
, w
; };
10 bar (const struct B
*x
)
16 b
= r
.x
* x
->w
.x
+ r
.y
* x
->w
.y
;
17 c
= b
+ r
.x
* r
.x
+ r
.y
* r
.y
;
24 foo (float *a
, float *b
, float *c
)
30 for (i
= 0; i
< 32; i
++)
44 /* { dg-final { scan-tree-dump-times "vectorized 1 loops in function" 1 "vect" { target { vect_condition && vect_float } } } } */