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

Test ALU opcodes using only the external interface #754

Merged
merged 6 commits into from
Jun 20, 2024

Conversation

Dentosal
Copy link
Member

@Dentosal Dentosal commented Jun 12, 2024

Part of #746

Refactors ALU testing to only use instruction execution. Removes lots of code, tests lots of previously untested cases, and keeps the old code coverage numbers (master, this PR).

Before requesting review

  • I have reviewed the code myself

@Dentosal Dentosal added the no changelog Skips the CI changelog check label Jun 12, 2024
@Dentosal Dentosal self-assigned this Jun 12, 2024
@Dentosal Dentosal marked this pull request as ready for review June 12, 2024 12:59
@Dentosal Dentosal requested a review from a team June 12, 2024 12:59
normal: run(Flags::empty()),
wrapping: run(Flags::WRAPPING),
unsafemath: run(Flags::UNSAFEMATH),
wrapping_unsafemath: run(Flags::WRAPPING | Flags::UNSAFEMATH),
Copy link
Member

Choose a reason for hiding this comment

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

Why isn't this & instead of |? Am I missing something? (same thing below)

Copy link
Member Author

Choose a reason for hiding this comment

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

Thse are bitflags. | combines them. imagine unsafemath = 1 (0b01), wrapping = 2 (0b10). Now 0b01 & 0b10 == 0b00 and 0b01 | 0b10 == 0b11

Copy link
Member

Choose a reason for hiding this comment

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

Cool. I see now.

@Dentosal Dentosal added this pull request to the merge queue Jun 20, 2024
Merged via the queue into master with commit 3166901 Jun 20, 2024
39 checks passed
@Dentosal Dentosal deleted the dento/more-testing branch June 20, 2024 22:54
@xgreenx xgreenx mentioned this pull request Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no changelog Skips the CI changelog check
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants