1 /* { dg-do compile } */
2 /* { dg-options "-Ofast" } */
3 
4 typedef int int32x2_t __attribute__ ((__vector_size__ ((8))));
5 
6 void
foo(int32x2_t * foo,int32x2_t * bar)7 foo (int32x2_t *foo, int32x2_t *bar)
8 {
9   int i = 0;
10   int32x2_t val = { 3, 2 };
11 
12   for (i = 0; i < 1024; i+=2)
13     foo[i] = bar[i] + bar[i + 1];
14 }
15 
16 /* Xfail for now since IVOPT doesn't choose [base+offset] addressing mode.
17    See PR79213.  */
18 /* { dg-final { scan-assembler "ldp\td\[0-9\]+, d\[0-9\]" { xfail *-*-* } } } */
19