Stream: git-wasmtime

Topic: wasmtime / PR #3272 Implement `IaddPairwise` for the inte...


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

dheaton-arm opened PR #3272 from implement-iaddpairwise to main:

Implemented IaddPairwise for the Cranelift interpreter, to add pairs
of adjacent values in two SIMD vectors, concatenating them at the end
(preserving both lane size and number of lanes).

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 01 2021 at 13:50):

afonso360 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 01 2021 at 13:50):

afonso360 created PR review comment:

    for pair in arg0.iter().chain(arg1).chunks(2) {
        let lhs: V = Value::int(pair[0], vector_type.lane_type())?;
        let rhs: V = Value::int(pair[1], vector_type.lane_type())?;
        let sum = op(lhs, rhs)?;
        let sum = sum.into_int()?;
        result.push(sum);
    }

view this post on Zulip Wasmtime GitHub notifications bot (Sep 01 2021 at 13:50):

afonso360 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 01 2021 at 13:52):

afonso360 submitted PR review.

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

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Sep 02 2021 at 13:21):

dheaton-arm updated PR #3272 from implement-iaddpairwise to main.

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

cfallin merged PR #3272.


Last updated: Dec 23 2024 at 12:05 UTC