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

Description of FNMADD and FNMSUB is swapped #19

Open
vineetgarc opened this issue Jun 16, 2022 · 0 comments
Open

Description of FNMADD and FNMSUB is swapped #19

vineetgarc opened this issue Jun 16, 2022 · 0 comments

Comments

@vineetgarc
Copy link

Per ISA spec:

FNMSUB.S multiplies the values in rs1 and rs2, negates the product, adds the value in rs3, and
writes the final result to rd. FNMSUB.S computes -(rs1×rs2)+rs3.
FNMADD.S multiplies the values in rs1 and rs2, negates the product, subtracts the value in rs3,
and writes the final result to rd. FNMADD.S computes -(rs1×rs2)-rs3.
..
The FNMSUB and FNMADD instructions are counterintuitively named, owing to the naming
of the corresponding instructions in MIPS-IV.

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