1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_prefer_ldrd_strd } */
3 /* { dg-options "-O2 -mthumb" } */
4
5 struct
6 {
7 int x;
8 int y;
9 char c;
10 int d;
11 }a;
12
13 int foo(int x, int y)
14 {
15 int c;
16 a.x = x;
17 c = a.x;
18 a.d = c;
19 a.y = y;
20
21 return 0;
22 }
23 /* { dg-final { scan-assembler "strd\t" { target { arm_thumb2_ok } } } } */