summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/aarch64/ldp_stp_4.c
blob: 824f0d2e81bc250f40ffb71b3e39cde76c9ff28d (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" } */

float arr[4][4];

void
foo (float x, float y)
{
  arr[0][1] = x;
  arr[1][0] = y;
  arr[2][0] = x;
  arr[1][1] = y;
  arr[0][2] = x;
  arr[0][3] = y;
  arr[1][2] = x;
  arr[2][1] = y;
  arr[3][0] = x;
  arr[3][1] = y;
  arr[2][2] = x;
  arr[1][3] = y;
  arr[2][3] = x;
  arr[3][2] = y;
}

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