1 /* PR target/59501 */
2 /* { dg-do compile { target { ! ia32 } } } */
3 /* { dg-options "-O2 -mavx -mno-accumulate-outgoing-args" } */
4 
5 typedef double V __attribute__ ((vector_size (32)));
6 
7 V
foo(double * x,unsigned * y)8 foo (double *x, unsigned *y)
9 {
10   V r = { x[y[0]], x[y[1]], x[y[2]], x[y[3]] };
11   return r;
12 }
13 
14 /* Verify no dynamic realignment is performed.  */
15 /* { dg-final { scan-assembler-not "and\[^\n\r]*sp" } } */
16 /* And DRAP isn't needed either.  */
17 /* { dg-final { scan-assembler-not "r10" } } */
18