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(VLIW): implement missing ALU instructions #165

Merged
merged 2 commits into from
May 7, 2024
Merged

Conversation

endes0
Copy link
Member

@endes0 endes0 commented May 7, 2024

This PR fixes the execution of ALU instructions, apart from ADD and ADDi it seems that the rest of instructions were never ported to the VLIW machine. For the fix, I refactored the runOperation to look more similar to the Superescalar implementation, which doesn't use a problematic switch case for opcodes (see #71). Also, I ported the shift functional test to the VLIW, so more type of instructions are tested to avoid having the same issue in the future (Is this regression testing?).

Closes #163

@endes0 endes0 self-assigned this May 7, 2024
@endes0 endes0 requested a review from oxcabe May 7, 2024 14:56
@endes0 endes0 changed the title fix(VLIW): ALU Instruction execution fix(VLIW): ALU instructions execution May 7, 2024
Copy link
Member

@oxcabe oxcabe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just the nit with the newline and we're good to go

src/test/functional/code/despl.ts Outdated Show resolved Hide resolved
@oxcabe oxcabe changed the title fix(VLIW): ALU instructions execution fix(VLIW): implement missing ALU instructions May 7, 2024
@oxcabe oxcabe merged commit 96b13c0 into main May 7, 2024
1 check passed
@oxcabe oxcabe deleted the fix/vliw-opcodes branch May 7, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problemas con la instrucción SUB de la máquina VLIW
2 participants