-
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}.copysign instructions #471
Conversation
chfast
commented
Aug 11, 2020
•
edited
Loading
edited
@@ -1470,6 +1470,16 @@ ExecutionResult execute(Instance& instance, FuncIdx func_idx, span<const Value> | |||
binary_op(stack, std::divides<float>{}); | |||
break; | |||
} | |||
case Instr::f32_copysign: | |||
{ | |||
// TODO: This is not optimal implementation. The std::copysign() is inlined, but |
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 not implement it then? Is that planned after merging this? Did you only see this for copysign
?
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.
Only for copysign
and abs
. Also theoretical UB will be involved, so I prefer to have all spec tests passed before doing that.
6435f60
to
717a89a
Compare
5636fa9
to
69fdd36
Compare
782518d
to
ef1f54c
Compare
Codecov Report
@@ Coverage Diff @@
## master #471 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 54 54
Lines 16324 16364 +40
=======================================
+ Hits 16250 16290 +40
Misses 74 74 |