1 /* PR tree-optimization/59523 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4 /* { dg-additional-options "-mavx2" { target { i?86-*-* x86_64-*-* } } } */
5 /* { dg-require-effective-target alloca } */
8 foo (int a
, int *b
, int *c
, int *d
)
10 int i
, *r
= __builtin_alloca (a
* sizeof (int));
11 __builtin_memcpy (r
, d
, a
* sizeof (int));
12 for (i
= 0; i
< 64; i
++)
14 for (i
= 0; i
< a
; i
++)