diff options
author | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-10 18:54:35 +0100 |
---|---|---|
committer | Pavel Pisa <pisa@cmp.felk.cvut.cz> | 2019-03-10 18:54:35 +0100 |
commit | 596bb6231115aa29cde804c27c899afb4cf03a25 (patch) | |
tree | d9bfa173e1138b9dd36574bb168ebb4884c6d7f9 /tests/machine-unit-tests/test.sh | |
parent | ab28ba46d6dcbf8539fc724bfbfb982722339036 (diff) | |
download | qtmips-596bb6231115aa29cde804c27c899afb4cf03a25.tar.gz qtmips-596bb6231115aa29cde804c27c899afb4cf03a25.tar.bz2 qtmips-596bb6231115aa29cde804c27c899afb4cf03a25.zip |
Fix program end by exception if divisor is zero for div instruction.
Problem reported by Jakub Broz.
Correct behaviour according to
MIPS Architecture for Programmers Volume II-A:
The MIPS32 Instruction Set Manual
which describes DIV instruction
Format: DIV rs, rt
No arithmetic exception occurs under any circumstances.
Restrictions:
If the divisor in GPR rt is zero, the arithmetic result value
is UNPREDICTABLE.
Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Diffstat (limited to 'tests/machine-unit-tests/test.sh')
0 files changed, 0 insertions, 0 deletions