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
Match: Support .SAT_SUB with IMM op for form 1-4
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.target
/
riscv
/
zero-extend-4.c
blob
3c776b09d6e427550b5f0e5ec1b3faad69a203d2
1
/* { dg-do compile { target { riscv64*-*-* } } } */
2
/* { dg-options "-march=rv64gc -mabi=lp64" } */
3
/* { dg-skip-if "" { *-*-* } { "-O0" } } */
4
int
a
,
b
,
e
;
5
struct
c
*
d
;
6
struct
c
7
{
8
int
bins
;
9
int
binmap
[
10
];
10
}
11
f
(
void
)
12
{
13
for
(;;)
14
{
15
e
= (
unsigned
)
a
>>
3
;
16
b
= (
long
) &
d
[
e
];
17
if
(
b
)
18
d
->
binmap
[
0
] =
e
;
19
}
20
}
21
/* { dg-final { scan-assembler-times {\msext\.w\M} 0 } } */