Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / arm / ldrd-strd-pair-1.c
blob7a0bff5f8415d9b133f399f77bb3af582b33d5a9
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_prefer_ldrd_strd } */
3 /* { dg-options "-O2 -mthumb" } */
5 struct
7 int x;
8 int y;
9 char c;
10 int d;
11 }a;
13 int foo(int x, int y)
15 int c;
16 a.x = x;
17 c = a.x;
18 a.d = c;
19 a.y = y;
21 return 0;
23 /* { dg-final { scan-assembler "strd\t" { target { arm_thumb2_ok } } } } */