RESOLVED FIXED 152925
B3 needs Neg()
https://bugs.webkit.org/show_bug.cgi?id=152925
Summary B3 needs Neg()
Filip Pizlo
Reported 2016-01-08 13:49:18 PST
Currently B3 expresses -x as 0-x. That's wrong in case of floating point. It's probably better if we just have a Neg opcode, and this opcode should work for both ints and floats.
Attachments
work in progress (12.74 KB, patch)
2016-01-08 14:12 PST, Filip Pizlo
no flags
the patch (15.79 KB, patch)
2016-01-08 15:35 PST, Filip Pizlo
mark.lam: review+
Filip Pizlo
Comment 1 2016-01-08 14:12:29 PST
Created attachment 268584 [details] work in progress
Filip Pizlo
Comment 2 2016-01-08 15:35:42 PST
Created attachment 268595 [details] the patch
Mark Lam
Comment 3 2016-01-08 16:00:01 PST
Comment on attachment 268595 [details] the patch View in context: https://bugs.webkit.org/attachment.cgi?id=268595&action=review r=me > Source/JavaScriptCore/ChangeLog:18 > + So, this introduces a proper Neg() opcode to B3. It's not the canonical way of saying typo: "not" ==> "now".
Filip Pizlo
Comment 4 2016-01-08 16:03:59 PST
Note You need to log in before you can comment on or make changes to this bug.