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.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
afonso360 submitted PR review.
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); }
afonso360 submitted PR review.
afonso360 submitted PR review.
cfallin submitted PR review.
dheaton-arm updated PR #3272 from implement-iaddpairwise
to main
.
cfallin merged PR #3272.
Last updated: Dec 23 2024 at 12:05 UTC