-
Notifications
You must be signed in to change notification settings - Fork 88
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
Conversation
normal: run(Flags::empty()), | ||
wrapping: run(Flags::WRAPPING), | ||
unsafemath: run(Flags::UNSAFEMATH), | ||
wrapping_unsafemath: run(Flags::WRAPPING | Flags::UNSAFEMATH), |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I see now.
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