Stream: git-wasmtime

Topic: wasmtime / PR #3202 Fix validating wasm stores of boolean...


view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 15:49):

alexcrichton opened PR #3202 from fix-simd-store to main:

Previously cranelift's wasm code generator would emit a raw store
instruction for all wasm types, regardless of what the cranelift operand
type was. Cranelift's store instruction, however, isn't valid for
boolean vector types. This commit fixes this issue by inserting a
bitcast specifically for the store instruction if a boolean vector type
is being stored, continuing to avoid the bitcast for all other vector types.

Closes #3099

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 15:51):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 16:09):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 16:09):

bjorn3 created PR review comment:

Should we instead define that boolean vectors can be stored using store directly and are stored as all-zero or all-one lanes?

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 16:22):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 16:22):

abrown created PR review comment:

That is a good approach but I don't mind what @alexcrichton tried here because:

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 16:22):

abrown edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 17:04):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 17:04):

cfallin created PR review comment:

I just created #3205 for this. Agreed that for now, the immediate fuzzbug fix is fine.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 17:16):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 17:16):

alexcrichton created PR review comment:

Ok I'm gonna go ahead and merge this fix for now and defer to #3205 for future updates.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 18 2021 at 17:16):

alexcrichton merged PR #3202.


Last updated: Nov 22 2024 at 16:03 UTC