Skip to content
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

Second left-to-right test #135

Merged
merged 4 commits into from
Oct 16, 2015
Merged

Conversation

pjuftring
Copy link
Contributor

This tests if store instructions and calls evaluate their operands from left to right, too.

I added store operations and adjusted the memory size.
I already added the four dummy functions, which will be used to test the
evaluation order of functions.
(func $f32_right (result f32) (i32.store8 (i32.const 0) (i32.const 2)) (f32.const 145))
(func $f64_left (result f64) (i32.store8 (i32.const 0) (i32.const 1)) (f64.const 163))
(func $f64_right (result f64) (i32.store8 (i32.const 0) (i32.const 2)) (f64.const 164))
(func $reset (i32.store8 (i32.const 8)(i32.const 0)))
Copy link
Member

Choose a reason for hiding this comment

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

I see this was already present in the previous patch, but could you add a space between the ')' and '(' here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, next time I'll scan my code for ')(', so hopefully this won't happen again.

@sunfishcode
Copy link
Member

Other than comments above, looks good to me.

I added a space between two brackets, fixed the comment and added a new
"test to write" to TestingTodo, which will test the evaluation order of
call_indirect
@sunfishcode
Copy link
Member

lgtm, thanks!

sunfishcode added a commit that referenced this pull request Oct 16, 2015
@sunfishcode sunfishcode merged commit 05c5cd6 into WebAssembly:master Oct 16, 2015
alexcrichton pushed a commit to alexcrichton/spec that referenced this pull request Nov 18, 2019
…#135)

This PR also centralizes the processing of float-point ops
in one file named simd_float_op.py,
see WAVM PR: WAVM/WAVM#209
dhil pushed a commit to dhil/webassembly-spec that referenced this pull request Mar 2, 2023
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