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
PR target/58901: reload: Handle SUBREG of MEM with a mode-dependent address
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
pr58901-1.c
blob
e01dba056bd6f1df6da7272c4f0d53296ee955a4
1
typedef
signed int
__attribute__
((
mode
(
SI
)))
int_t
;
2
3
struct
s
4
{
5
int_t n
;
6
int_t m
:
1
;
7
int_t l
:
31
;
8
};
9
10
int_t
11
movdi
(
int_t x
,
const struct
s
*
s
)
12
{
13
int_t i
;
14
15
for
(
i
=
0
;
i
<
x
;
i
++)
16
{
17
const struct
s t
=
s
[
i
];
18
x
+=
t
.
m
?
1
:
0
;
19
}
20
return
x
;
21
}