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
RISC-V: Add support for riscv-*-*.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.c-torture
/
compile
/
signext.c
blob
2724098d0318696cb8d3124a1d9e67ddc83d47a6
1
void
longprint
(
x
)
2
long long
x
;
3
{
4
printf
(
" %d, %d
\n
"
, (
unsigned
) ((
unsigned long long
)
x
>>
32
),
5
(
unsigned
)
x
);
6
}
7
8
void
9
k_min
(
p
,
qa
,
d
)
10
int
d
;
11
{
12
int
s
=
1
;
13
long long
x
;
14
15
if
(
s
>=
d
)
16
s
-=
d
;
17
18
x
= ((
long long
)((
8
*
s
) %
3
) +
qa
) %
d
;
19
longprint
(
x
);
20
}
21
22
int
23
main
()
24
{
25
k_min
(
100003
, -
600017
,
3
);
26
return
0
;
27
}