sign-extension-ops icon indicating copy to clipboard operation
sign-extension-ops copied to clipboard

Where is i16.extend8_s

Open lygstate opened this issue 7 years ago • 3 comments
trafficstars

lygstate avatar May 12 '18 05:05 lygstate

WebAssembly doesn't have an i16 value type, so that instruction wouldn't be useful. Instead, you can use i32.extend8_s followed by i32.store16 to write a 16-bit value to linear memory.

binji avatar May 12 '18 20:05 binji

gocha waht's happened. I do think at least webassembly need have i16 & fp16 support. i8 suppot seems not necessary.

lygstate avatar May 13 '18 16:05 lygstate

16-bit floating point support is mentioned as a future feature here. 16-bit integer value types are less useful, in my opinion.

binji avatar May 14 '18 02:05 binji