Skip to content

Reorder select's operands to put the condition last.#221

Merged
sunfishcode merged 1 commit intomasterfrom
select-operand-order
Feb 4, 2016
Merged

Reorder select's operands to put the condition last.#221
sunfishcode merged 1 commit intomasterfrom
select-operand-order

Conversation

@sunfishcode
Copy link
Member

This implements the select portion of
WebAssembly/design#489

br_if operands are more involved, so I'll submit a separate PR for them.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems you also need to move this line after the other calls.

This implements the select portion of
WebAssembly/design#489

br_if operands are more involved, so I'll submit a separate PR for them.
@sunfishcode
Copy link
Member Author

Fixed the evaluation order now that 76553cf has landed which has the test for operand evaluation order.

@rossberg
Copy link
Member

rossberg commented Feb 4, 2016

lgtm

sunfishcode added a commit that referenced this pull request Feb 4, 2016
Reorder select's operands to put the condition last.
@sunfishcode sunfishcode merged commit 50ed5eb into master Feb 4, 2016
@sunfishcode sunfishcode deleted the select-operand-order branch February 4, 2016 21:45
jfbastien added a commit to WebAssembly/binaryen that referenced this pull request Feb 5, 2016
The ordering changed in: WebAssembly/spec#221
Which changed the spec tests, breaking sexpr-wasm because it pulls in the spec tests. This was then fixed:
WebAssembly/wabt@23dc368
Which in turn breaks when binaryen feeds sexpr-wasm .wast files with the old select operand ordering.

Note that this PR has new failures when running the torture tests in binaryen-shell: the order of evaluation is correct in binaryen-shell but isn't emitted properly by LLVM in the .s files. This will require another patch to fix LLVM.
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
* Formal overview: add uncaught exceptions

Based on this previous discussion:
https://github.com/WebAssembly/exception-handling/pull/143/files#r761207853

Also:
- fixed throw contexts to include situations where `val* T instr*` in general.

* Addressed review comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants