Skip to content

Conversation

@IntegralPilot
Copy link
Owner

@IntegralPilot IntegralPilot commented Jun 28, 2025

Fixes the operand order for all non-commutative signed binary operations (div_s, gt_s, lt_s, etc.) to correctly match the WebAssembly specification (stack: val2, val1 -> result: val2 op val1).
Also adds support for unsigned operation instructions:

  • i32.gt_u, lt_u, ge_u, le_u, div_u and rem_u have been implemented in GammaCPU
  • GammaALU updated appropriately to support this
  • Tests added and updated for this new functionality to the CPU & ALU test benches

@IntegralPilot IntegralPilot changed the title Add support for unsigned operation instructions Fix binary op order and add unsigned instructions Jun 28, 2025
Fixes the operand order for all non-commutative signed binary operations (div_s, gt_s, lt_s, etc.) to correctly match the WebAssembly specification (stack: val2, val1 -> result: val2 op val1).
Also adds support for unsigned operation instructions:
- i32.gt_u, lt_u, ge_u, le_u, div_u and rem_u have been implemented in GammaCPU
- GammaALU updated appropriately to support this
- Tests added and updated for this new functionality to the CPU & ALU test benches
@IntegralPilot IntegralPilot merged commit 8a566c0 into main Jun 28, 2025
1 check passed
@IntegralPilot IntegralPilot deleted the unsigned_ops branch June 28, 2025 05:39
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