-
Notifications
You must be signed in to change notification settings - Fork 34
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
Implement f{32,64}.neg instructions #477
Conversation
gumb0
commented
Aug 12, 2020
•
edited
Loading
edited
Codecov Report
@@ Coverage Diff @@
## master #477 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 54 54
Lines 16196 16226 +30
=======================================
+ Hits 16122 16152 +30
Misses 74 74 |
3f0373e
to
64ca4c3
Compare
{ | ||
// fneg(+-p) = -+p | ||
EXPECT_THAT(exec(p), Result(-p)); | ||
EXPECT_THAT(exec(-p), Result(p)); |
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.
Aren't in these tests practically trusting the compiler compared to the others where we have explicit constants?
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.
We trust that negation work everywhere.
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.
If we wanted to be pedantic we'd always test against the encoded representation.
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.
Possible in the future... i.e. we would need to extend FP
to do some software floating-point operations.
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.
Something like wast2wasm4cpp
script could work, which evaluates the C++ code and puts in the hard constants. We could manually verify that when committed and at every change.