projects
/
riscv-isa-sim.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[sim] fixed some compiler warnings
[riscv-isa-sim.git]
/
riscv
/
insns
/
divw.h
1
if
(
int32_t
(
RS2
) ==
0
|| (
int32_t
(
RS1
) ==
INT32_MIN
&&
int32_t
(
RS2
) == -
1
))
2
RD
=
sext32
(
int32_t
(
RS1
) <
0
?
INT32_MIN
:
INT32_MAX
);
3
else
4
RD
=
sext32
(
int32_t
(
RS1
)/
int32_t
(
RS2
));