Stream: git-wasmtime

Topic: wasmtime / PR #8692 riscv64: Support scalar-vector bitcasts


view this post on Zulip Wasmtime GitHub notifications bot (May 25 2024 at 14:24):

afonso360 requested wasmtime-compiler-reviewers for a review on PR #8692.

view this post on Zulip Wasmtime GitHub notifications bot (May 25 2024 at 14:24):

afonso360 opened PR #8692 from afonso360:riscv64-i128-vec-bitcast to bytecodealliance:main:

:wave: Hey,

This PR Implements lowerings for casting between scalar types and vector types. This is split between two implementations.

For i128 to 128bit vectors, we have lowerings that correctly split or join the high and low halves.

Additionally, the RISC-V backend fully supports smaller (and larger) vectors, so for vectors 64bit or smaller, we also implement single instruction lowerings to move Vectors to the X and F registers, and vice-versa.

Bitcasting between larger vectors types should already be supported, since we don't actually need to do anything to the register.

cc: #6104

view this post on Zulip Wasmtime GitHub notifications bot (May 25 2024 at 14:24):

afonso360 requested cfallin for a review on PR #8692.

view this post on Zulip Wasmtime GitHub notifications bot (May 25 2024 at 19:03):

afonso360 updated PR #8692.

view this post on Zulip Wasmtime GitHub notifications bot (May 28 2024 at 14:39):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 28 2024 at 14:54):

alexcrichton merged PR #8692.


Last updated: Oct 23 2024 at 20:03 UTC