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

Fix clobbering of saturation results #1

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

AntonJohansson
Copy link

The [add|addu|sub]sat instructions write the result of saturation directly to the destination register X[rd], which is subsequently overwritten by an unconditional write to X[rd].

Fix this by storing saturation results to a temporary that eventually gets written to X[rd].

dhower-qc pushed a commit that referenced this pull request Jan 21, 2025
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

Successfully merging this pull request may close these issues.

2 participants