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

Implementation + Tests for i32.div_s and i32.div_u. Runtime Errors #15

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

nerodesu017
Copy link
Collaborator

@nerodesu017 nerodesu017 commented Jul 1, 2024

Pull Request Overview

This pull request:

  • adds the i32.div_s operation
  • adds test cases for the i32.div_s operation
  • adds the i32.div_u operation
  • adds test cases for the i32.div_u operation
  • refactors the invoke_func and function functions to be able to return an error through the Result return type - to add runtime errors

Testing Strategy

This pull request was tested locally on the added test case and all others.

TODO or Help Wanted

This pull request still needs a review.

Formatting

  • Ran cargo fmt
  • Ran cargo check
  • Ran cargo build

Github Issue

This pull request partially implements #2

Author

Signed-off-by: Popescu Adrian adrian.popescu@oxidos.io

@nerodesu017 nerodesu017 changed the title Feature/i32 div operations Implementation + Tests for i32.div_s and i32.div_u. Runtime Errors Jul 1, 2024
src/execution/mod.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@wucke13 wucke13 left a comment

Choose a reason for hiding this comment

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

Some minor nitpicks, bug generally LGTM!

@nerodesu017 nerodesu017 added this pull request to the merge queue Jul 3, 2024
Merged via the queue into main with commit 6711141 Jul 3, 2024
4 checks passed
@nerodesu017 nerodesu017 deleted the feature/i32-div-operations branch July 3, 2024 11:12
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.

4 participants