• smartcontracts's avatar
    fix: correct implementation of srav (#245) · c303b218
    smartcontracts authored
    Existing implementation of SRAV had a bug where it would perform a
    shift with all bytes of the rs register when the spec says it
    should only be using the lower 5 bits of the register. Updates the
    implementation to reflect this, updates the existing test to use
    the same test vector as provided in the open mips tests, and adds
    fuzz tests that shows srav works as expected with rs values that
    have more than the lower 5 bits set.
    c303b218
Name
Last commit
Last update
..
exec Loading commit data...
memory Loading commit data...
multithreaded Loading commit data...
program Loading commit data...
singlethreaded Loading commit data...
tests Loading commit data...
testutil Loading commit data...
.gitignore Loading commit data...
README.md Loading commit data...
debug.go Loading commit data...
hex.go Loading commit data...
iface.go Loading commit data...
logw.go Loading commit data...
oracle.go Loading commit data...
state.go Loading commit data...
witness.go Loading commit data...