repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
arm
/
ldrd-strd-pair-1.c
blob
7a0bff5f8415d9b133f399f77bb3af582b33d5a9
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 } } } } */