aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/ldp_stp_1.c
blob: f02e55f1cc2f01063aea35b3b88f793bb2f7c532 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-options "-O2" } */

int arr[4][4];

void
foo ()
{
  arr[0][1] = 1;
  arr[1][0] = -1;
  arr[2][0] = 1;
  arr[1][1] = -1;
  arr[0][2] = 1;
  arr[0][3] = -1;
  arr[1][2] = 1;
  arr[2][1] = -1;
  arr[3][0] = 1;
  arr[3][1] = -1;
  arr[2][2] = 1;
  arr[1][3] = -1;
  arr[2][3] = 1;
  arr[3][2] = -1;
}

/* { dg-final { scan-assembler-times "stp\tw\[0-9\]+, w\[0-9\]" 7 } } */