Stream: git-wasmtime

Topic: wasmtime / PR #3380 Implement `Iabs` for the interpreter


view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 12:00):

dheaton-arm opened PR #3380 from implement-iabs to main:

Implemented Iabs to return the absolute integer value with wrapping.

Copyright (c) 2021, Arm Limited

<!--

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 (Sep 22 2021 at 12:05):

dheaton-arm edited PR #3380 from implement-iabs to main:

Implemented Iabs for the Cranelift interpreter to return the absolute integer value with wrapping.

Copyright (c) 2021, Arm Limited

<!--

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 (Sep 22 2021 at 13:18):

dheaton-arm updated PR #3380 from implement-iabs to main.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 14:05):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 14:05):

bjorn3 created PR review comment:

Would it be an idea to make extractlanes and vectorizelanes on non-vector values produce and accept a single element? That way you can use the same code for scalar and vector types without any duplication.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 14:23):

dheaton-arm submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 14:23):

dheaton-arm created PR review comment:

Would this make sense as a separate patch? Since I think that would involve restructuring both extractlanes and vectorizelanes a fair bit, plus then going through the existing uses of those functions in the rest of step.rs.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 17:00):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 17:00):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 17:00):

cfallin created PR review comment:

This sounds like a reasonable refactor; I also agree that it's a bit out-of-scope for this PR, but could be a followup.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 22 2021 at 17:00):

cfallin merged PR #3380.


Last updated: Nov 22 2024 at 16:03 UTC