Repository navigation
Add i32.eqz. - #555
Add i32.eqz.#555
Conversation
|
lgtm |
|
Bikeshed: I know that v8-proto uses the same name, but it never struck me as particularly consistent. We decided not to have a bool type, so why should the operator name pretend otherwise? |
|
Agreed with @rossberg-chromium. I would prefer to call i32.logicalNot or something along those lines. |
|
Please not |
|
i32.eqz? Since it is literally On Fri, Feb 26, 2016 at 12:58 AM, JSStats [email protected] wrote:
|
|
I like the symmetry of |
|
Currently we say all i32 operators are also available in i64. Also, for the shade of purple of the bikeshed, any preference for "eq0" instead of "eqz"? |
|
Well, we already have If we had |
|
My bikeshed is painted with stripes of |
|
I think we should only add i32.eqz (or really, just rename bool.not). After On Fri, Feb 26, 2016 at 12:53 PM, Ben Smith [email protected]
|
|
Updated the PR to |
|
I strongly vote for including @binji, since it is a predicate operator, |
|
@rossberg-chromium yes, that would make the most sense. Though it does mean that |
|
I'm fine with i64.eqz for symmetry. On Mon, Feb 29, 2016 at 11:04 AM, Ben Smith [email protected]
|
|
Updated to add both |
|
Sounds good, though it somehow doesn't show up in the diff. |
|
That's because AstSemantics.md just says "The same operators are available on 64-bit integers as the those available for 32-bit integers." The change to add |
|
Ah, okay, got it. LGTM |
|
@sunfishcode Could you check that the name of the opcode in the binary encoding is updated here too as it was missed in #587 |
|
i32.eqz and i64.eqz appear to have sufficient consensus; merging. |
This adds a
bool.notoperator, consistent with the one in the binary format.