1 /* { dg-options "-O2 -mcpu=generic" } */
2
3 int arr[4][4];
4
5 void
6 foo (int x, int y)
7 {
8 arr[0][1] = x;
9 arr[1][0] = y;
10 arr[2][0] = x;
11 arr[1][1] = y;
12 arr[0][2] = x;
13 arr[0][3] = y;
14 arr[1][2] = x;
15 arr[2][1] = y;
16 arr[3][0] = x;
17 arr[3][1] = y;
18 arr[2][2] = x;
19 arr[1][3] = y;
20 arr[2][3] = x;
21 arr[3][2] = y;
22 }
23
24 /* { dg-final { scan-assembler-times "stp\tw\[0-9\]+, w\[0-9\]" 7 } } */