Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Add opcodes for extending different size integer signed and unsigned loads #83

Closed
rrwinterton opened this issue Jul 16, 2019 · 2 comments

Comments

@rrwinterton
Copy link

In a previous issue the instructions for the following instructions were proposed:

u8x8.zload(mem->v128 (u16) ) - load 8 8 bit unsigned integer to 8 16 unsigned integers zero extended
u16x4.zload(mem->v128 (u32) ) - load 4 16 bit unsigned integer to 4 32 unsigned integers zero extended
u32x2.zload(mem->v128 (u64) ) - load 2 32 bit unsigned integer to 2 64 unsigned integers zero extended

and

i8x8.sload(mem->v128 (i16) ) - load 8 8 bit signed integer to 8 16 signed integers extended
i16x4.sload(mem->v128 (i32) ) - load 4 16 bit signed integer to 4 32 signed integers extended
i32x2.sload(mem->v128 (i64) ) - load 2 32 bit signed integer to 2 64 signed integers extended

We already have proposed for converting between higher precision to lower in register prior to store. We need an efficient upload opcode instructions similar to what was proposed at: #21

@tlively
Copy link
Member

tlively commented Jul 16, 2019

Is this a duplicate of #28? You already have a PR open to address this at #77 with a large number of unresolved comments. Perhaps you could iterate on that PR to move this proposal forward?

@penzn
Copy link
Contributor

penzn commented Jul 27, 2019

That gets handled by #77 now, I believe

@tlively tlively closed this as completed Jul 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants