Skip to content

Fix unreachable reinterpret instruction execution#334

Merged
tolauwae merged 5 commits intomainfrom
fix/unreachable-reinterpret-instr
Apr 1, 2026
Merged

Fix unreachable reinterpret instruction execution#334
tolauwae merged 5 commits intomainfrom
fix/unreachable-reinterpret-instr

Conversation

@abelstuker
Copy link
Copy Markdown
Contributor

This PR fixes #332.

The reinterpret instructions are covered by the i_instr_conversion function in instructions.cpp.
However, this function was never called by the interpreter for reinterpret instructions since its opcodes (0xbc ... 0xbf) were not included in the switch case range for the conversion instructions.
Therefore, the switch case range was extended to include the reinterpret instruction opcodes.

@abelstuker abelstuker force-pushed the fix/unreachable-reinterpret-instr branch from b76a6f8 to b1b6790 Compare November 22, 2025 10:23
@abelstuker abelstuker marked this pull request as ready for review November 28, 2025 21:06
@abelstuker abelstuker requested a review from tolauwae November 28, 2025 22:32
@tolauwae tolauwae enabled auto-merge (squash) December 2, 2025 13:50
@tolauwae tolauwae disabled auto-merge April 1, 2026 08:09
@tolauwae tolauwae merged commit ef47f58 into main Apr 1, 2026
17 checks passed
@tolauwae tolauwae deleted the fix/unreachable-reinterpret-instr branch April 1, 2026 08:09
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.

Reinterpret instruction execution implemented but unreachable

2 participants