Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARMv7_CPU.prototype.usat doesn't work #16

Open
fkuzume opened this issue Aug 13, 2021 · 1 comment
Open

ARMv7_CPU.prototype.usat doesn't work #16

fkuzume opened this issue Aug 13, 2021 · 1 comment

Comments

@fkuzume
Copy link

fkuzume commented Aug 13, 2021

in ARMv7_CPU.prototype.usat = function(inst, addr)

var ret = this.unsigned_satq(this.sint32(operand), saturate_to);
The above statement is incorrect.
The following description seems to be correct.

var ret = this.unsigned_satq(bitops.sint32(operand), saturate_to);

@fkuzume
Copy link
Author

fkuzume commented Aug 15, 2021

I found a problem with another issue.

this.regs[n] = ret;
The above is an incorrect register for the return.

this.regs[d] = ret;
The correct destination register is regs[d].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant