1 /* { dg-do compile } */
2 /* { dg-options "-O2 -funswitch-loops -fdump-tree-unswitch-optimized" } */
5 foo(double *a
, double *b
, double *c
, double *d
, double *r
, int size
, int order
)
7 for (int i
= 0; i
< size
; i
++)
16 double x
= 3 * tmp
+ d
[i
] + tmp
;
21 double y
= 3.4f
* tmp
+ d
[i
];
28 /* { dg-final { scan-tree-dump-times "unswitching loop . on .if. with condition: order.* == 1" 1 "unswitch" } } */